mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
update
This commit is contained in:
@@ -37,11 +37,11 @@ class Smarty_Internal_Extension_CodeFrame
|
|||||||
if ($_template->smarty->direct_access_security) {
|
if ($_template->smarty->direct_access_security) {
|
||||||
$output .= "if(!defined('SMARTY_DIR')) exit('no direct access allowed');\n";
|
$output .= "if(!defined('SMARTY_DIR')) exit('no direct access allowed');\n";
|
||||||
}
|
}
|
||||||
$output .= "if (isset(\$_smarty_tpl)) {\n";
|
//$output .= "if (isset(\$_smarty_tpl)) {\n";
|
||||||
$output .= "\$_valid = \$_smarty_tpl->decodeProperties(" . var_export($_template->properties, true) . ',' . ($cache ? 'true' : 'false') . ");\n";
|
$output .= "\$_valid = \$_smarty_tpl->decodeProperties(" . var_export($_template->properties, true) . ',' . ($cache ? 'true' : 'false') . ");\n";
|
||||||
$output .= "} else {\n";
|
//$output .= "} else {\n";
|
||||||
$output .= "\$_valid = false;\n";
|
//$output .= "\$_valid = false;\n";
|
||||||
$output .= "}\n";
|
//$output .= "}\n";
|
||||||
$output .= "/*/%%SmartyHeaderCode%%*/\n";
|
$output .= "/*/%%SmartyHeaderCode%%*/\n";
|
||||||
$output .= "if (\$_valid && !is_callable('{$_template->properties['unifunc']}')) {function {$_template->properties['unifunc']} (\$_smarty_tpl) {\n";
|
$output .= "if (\$_valid && !is_callable('{$_template->properties['unifunc']}')) {function {$_template->properties['unifunc']} (\$_smarty_tpl) {\n";
|
||||||
// include code for plugins
|
// include code for plugins
|
||||||
|
Reference in New Issue
Block a user