From 530c4bf108396bcfd10f925d4b4fe6343d2046b2 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Wed, 21 Oct 2009 16:13:20 +0000 Subject: [PATCH] - fixed function definitions on some autoloaded methods --- change_log.txt | 1 + libs/sysplugins/method.enableconfigoverwrite.php | 2 +- libs/sysplugins/method.enabledebugging.php | 2 +- libs/sysplugins/method.enableforcecompile.php | 2 +- libs/sysplugins/method.getcachedir.php | 2 +- libs/sysplugins/method.isconfigbooleanize.php | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/change_log.txt b/change_log.txt index 84f26f8f..014f5f80 100644 --- a/change_log.txt +++ b/change_log.txt @@ -4,6 +4,7 @@ - autoload Smarty internal classes - fixed file dependency for config files - some code optimizations +- fixed function definitions on some autoloaded methodes 10/20/2009 - check at compile time for variable filter to improve rendering speed if no filter is used diff --git a/libs/sysplugins/method.enableconfigoverwrite.php b/libs/sysplugins/method.enableconfigoverwrite.php index 9d4bb59b..319baecf 100644 --- a/libs/sysplugins/method.enableconfigoverwrite.php +++ b/libs/sysplugins/method.enableconfigoverwrite.php @@ -13,7 +13,7 @@ /** * Enable config overwrite mode */ -public function enableConfigOverwrite($smarty) +function enableConfigOverwrite($smarty) { $smarty->config_overwrite = true; return; diff --git a/libs/sysplugins/method.enabledebugging.php b/libs/sysplugins/method.enabledebugging.php index 8ee66cc6..e988f296 100644 --- a/libs/sysplugins/method.enabledebugging.php +++ b/libs/sysplugins/method.enabledebugging.php @@ -13,7 +13,7 @@ /** * Enable debugging */ -public function enableDebugging($smarty) +function enableDebugging($smarty) { $this->smarty->debugging = true; return; diff --git a/libs/sysplugins/method.enableforcecompile.php b/libs/sysplugins/method.enableforcecompile.php index 7e3d8d83..25d678d5 100644 --- a/libs/sysplugins/method.enableforcecompile.php +++ b/libs/sysplugins/method.enableforcecompile.php @@ -13,7 +13,7 @@ /** * Enable forced compiling */ -public function enableForceCompile($smarty) +function enableForceCompile($smarty) { $smarty->force_compile = true; return; diff --git a/libs/sysplugins/method.getcachedir.php b/libs/sysplugins/method.getcachedir.php index 56a59f2c..29e88f22 100644 --- a/libs/sysplugins/method.getcachedir.php +++ b/libs/sysplugins/method.getcachedir.php @@ -19,7 +19,7 @@ * * @return array cache folder */ -public function getCacheDir($smarty) +function getCacheDir($smarty) { return $this->smarty->cache_dir; } diff --git a/libs/sysplugins/method.isconfigbooleanize.php b/libs/sysplugins/method.isconfigbooleanize.php index 68c7f567..d6f95fa9 100644 --- a/libs/sysplugins/method.isconfigbooleanize.php +++ b/libs/sysplugins/method.isconfigbooleanize.php @@ -13,7 +13,7 @@ /** * is config booleanize mode */ -public function isConfigBooleanize($smarty) +function isConfigBooleanize($smarty) { return $smarty->config_booleanize; }