- bugfix clear_config Smarty2 BC wrapper function was missing

This commit is contained in:
uwe.tews@googlemail.com
2011-06-19 20:34:28 +00:00
parent 4d07e3b03e
commit a55e05506e
2 changed files with 15 additions and 10 deletions

View File

@@ -1,4 +1,7 @@
===== SVN trunk ===== ===== SVN trunk =====
19/06/2011
- bugfix clear_config Smarty2 BC wrapper function was missing
16/06/2011 16/06/2011
- bugfix do not overwrite 'smarty' template variable when {include ... scope=parent} exits - bugfix do not overwrite 'smarty' template variable when {include ... scope=parent} exits

View File

@@ -4,29 +4,29 @@
* Project: Smarty: the PHP compiling template engine * Project: Smarty: the PHP compiling template engine
* File: smarty_internal_wrapper.php * File: smarty_internal_wrapper.php
* SVN: $Id: $ * SVN: $Id: $
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version. * 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, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* *
* For questions, help, comments, discussion, etc., please join the * For questions, help, comments, discussion, etc., please join the
* Smarty mailing list. Send a blank e-mail to * Smarty mailing list. Send a blank e-mail to
* smarty-discussion-subscribe@googlegroups.com * smarty-discussion-subscribe@googlegroups.com
* *
* @link http://www.smarty.net/ * @link http://www.smarty.net/
* @copyright 2008 New Digital Group, Inc. * @copyright 2008 New Digital Group, Inc.
* @author Monte Ohrt <monte at ohrt dot com> * @author Monte Ohrt <monte at ohrt dot com>
* @author Uwe Tews * @author Uwe Tews
* @package Smarty * @package Smarty
* @subpackage PluginsInternal * @subpackage PluginsInternal
* @version 3-SVN$Rev: 3286 $ * @version 3-SVN$Rev: 3286 $
@@ -37,17 +37,17 @@
*/ */
class Smarty_Internal_Wrapper { class Smarty_Internal_Wrapper {
protected $smarty; protected $smarty;
function __construct($smarty) { function __construct($smarty) {
$this->smarty = $smarty; $this->smarty = $smarty;
} }
/** /**
* Converts smarty2-style function call to smarty 3-style function call * Converts smarty2-style function call to smarty 3-style function call
* This is expensive, be sure to port your code to Smarty 3! * This is expensive, be sure to port your code to Smarty 3!
* *
* @param string $name Smarty 2 function name * @param string $name Smarty 2 function name
* @param array $args Smarty 2 function args * @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); return call_user_func_array(array($this->smarty,'clearAllCache'),$args);
case 'cache': case 'cache':
return call_user_func_array(array($this->smarty,'clearCache'),$args); 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': case 'compiled_template':
return call_user_func_array(array($this->smarty,'clearCompiledTemplate'),$args); return call_user_func_array(array($this->smarty,'clearCompiledTemplate'),$args);
} }