- fixed PHP4 constructor message

This commit is contained in:
uwe.tews@googlemail.com
2011-10-19 19:49:27 +00:00
parent 5547f8a485
commit 85658fcdd4
2 changed files with 5 additions and 0 deletions

View File

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

View File

@@ -751,6 +751,9 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data {
return false;
}
}
if ($name == 'Smarty') {
throw new SmartyException("PHP5 requires you to call __construct() instead of Smarty()");
}
// must be unknown
throw new SmartyException("Call of unknown method '$name'.");
}