From 5547f8a48592869e3547e23b2cf05be20073bc2f Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Wed, 19 Oct 2011 19:20:58 +0000 Subject: [PATCH] revert PHP4 constructor --- change_log.txt | 2 ++ libs/Smarty.class.php | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/change_log.txt b/change_log.txt index 60ed909f..7f85723d 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 807d6706..71597023 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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 *