revert PHP4 constructor

This commit is contained in:
monte.ohrt
2011-10-19 19:20:58 +00:00
parent dd30176b9e
commit 5547f8a485
2 changed files with 2 additions and 9 deletions

View File

@@ -1,4 +1,6 @@
===== trunk ===== ===== trunk =====
19.10.2011
- revert PHP4 constructor message
===== Smarty-3.1.4 ===== ===== Smarty-3.1.4 =====
19.10.2011 19.10.2011
- added exception when using PHP4 style constructor - added exception when using PHP4 style constructor

View File

@@ -665,15 +665,6 @@ class Smarty extends Smarty_Internal_TemplateBase {
} }
} }
/**
* Throw error when using PHP 4 style constructor
*/
public function Smarty()
{
throw new SmartyException("PHP5 requires you to call __construct() instead of Smarty()");
}
/** /**
* Check if a template resource exists * Check if a template resource exists
* *