Files
smarty/libs/sysplugins/method.clear_config.php
Uwe.Tews d2d8c8925b - removed all internal calls of Smarty::instance()
- fixed code in double quoted strings
2009-08-08 17:28:23 +00:00

31 lines
525 B
PHP

<?php
/**
* Smarty method Get_Config_Vars
*
* Returns a single or all global config variables
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Deassigns a single or all global config variables
*
* @param object $smarty
* @param string $varname variable name or null
*/
function clear_config($smarty, $varname = null)
{
if (isset($varname)) {
unset($smarty->config_vars[$varname]);
return;
} else {
$smarty->config_vars = array();
return;
}
}
?>