mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
revert PHP4 constructor
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
===== trunk =====
|
||||
19.10.2011
|
||||
- revert PHP4 constructor message
|
||||
===== Smarty-3.1.4 =====
|
||||
19.10.2011
|
||||
- added exception when using PHP4 style constructor
|
||||
|
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user