Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F211155
smarty_method_clear_config.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
540 B
Subscribers
None
smarty_method_clear_config.php
View Options
<?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
Smarty_Method_Clear_Config
(
$smarty
,
$varname
=
null
)
{
if
(
isset
(
$varname
))
{
unset
(
$smarty
->
config_vars
[
$varname
]);
return
;
}
else
{
$smarty
->
config_vars
=
array
();
return
;
}
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 22, 11:24 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25898
Default Alt Text
smarty_method_clear_config.php (540 B)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment