diff --git a/change_log.txt b/change_log.txt index 71ac579c..368d8e12 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== SVN trunk ===== +19/06/2011 +- bugfix clear_config Smarty2 BC wrapper function was missing + 16/06/2011 - bugfix do not overwrite 'smarty' template variable when {include ... scope=parent} exits diff --git a/libs/sysplugins/smarty_internal_wrapper.php b/libs/sysplugins/smarty_internal_wrapper.php index f45153c3..303e2f92 100644 --- a/libs/sysplugins/smarty_internal_wrapper.php +++ b/libs/sysplugins/smarty_internal_wrapper.php @@ -4,29 +4,29 @@ * Project: Smarty: the PHP compiling template engine * File: smarty_internal_wrapper.php * SVN: $Id: $ - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * * For questions, help, comments, discussion, etc., please join the * Smarty mailing list. Send a blank e-mail to * smarty-discussion-subscribe@googlegroups.com - * + * * @link http://www.smarty.net/ * @copyright 2008 New Digital Group, Inc. - * @author Monte Ohrt - * @author Uwe Tews + * @author Monte Ohrt + * @author Uwe Tews * @package Smarty * @subpackage PluginsInternal * @version 3-SVN$Rev: 3286 $ @@ -37,17 +37,17 @@ */ class Smarty_Internal_Wrapper { - + protected $smarty; function __construct($smarty) { $this->smarty = $smarty; } - + /** * Converts smarty2-style function call to smarty 3-style function call * This is expensive, be sure to port your code to Smarty 3! - * + * * @param string $name Smarty 2 function name * @param array $args Smarty 2 function args */ @@ -95,6 +95,8 @@ class Smarty_Internal_Wrapper { return call_user_func_array(array($this->smarty,'clearAllCache'),$args); case 'cache': return call_user_func_array(array($this->smarty,'clearCache'),$args); + case 'config': + return call_user_func_array(array($this->smarty,'clearConfig'),$args); case 'compiled_template': return call_user_func_array(array($this->smarty,'clearCompiledTemplate'),$args); }