From 7aa6916acc62bda49e3c3dc90706cccc1fbc62bd Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 28 Mar 2001 14:36:09 +0000 Subject: [PATCH] Some variable renaming. --- Smarty_Compiler.class.php | 23 ++++++++++++----------- libs/Smarty_Compiler.class.php | 23 ++++++++++++----------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 55d682f1..d9f8d4e6 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -405,13 +405,13 @@ class Smarty_Compiler extends Smarty { " include_once 'Config_File.class.php';\n" . "if (!is_object(\$GLOBALS['_smarty_conf_obj']) || get_class(\$GLOBALS['_smarty_conf_obj']) != 'config_file')\n" . " \$GLOBALS['_smarty_conf_obj'] = new Config_File('".$this->config_dir."');\n" . - "if (isset(\$parent_smarty_config) && $update_parent)\n" . - " \$parent_smarty_config = array_merge((array)\$parent_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file']."));\n" . + "if (isset(\$_smarty_config_parent) && $update_parent)\n" . + " \$_smarty_config_parent = array_merge((array)\$_smarty_config_parent, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file']."));\n" . "\$_smarty_config = array_merge((array)\$_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file']."));\n"; if (!empty($attrs['section'])) { - $output .= "if (isset(\$parent_smarty_config) && $update_parent)\n" . - " \$parent_smarty_config = array_merge((array)\$parent_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file'].", ".$attrs['section']."));\n" . + $output .= "if (isset(\$_smarty_config_parent) && $update_parent)\n" . + " \$_smarty_config_parent = array_merge((array)\$_smarty_config_parent, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file'].", ".$attrs['section']."));\n" . "\$_smarty_config = array_merge((array)\$_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file'].", ".$attrs['section']."));\n"; } @@ -449,17 +449,18 @@ class Smarty_Compiler extends Smarty { return ""; } diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 55d682f1..d9f8d4e6 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -405,13 +405,13 @@ class Smarty_Compiler extends Smarty { " include_once 'Config_File.class.php';\n" . "if (!is_object(\$GLOBALS['_smarty_conf_obj']) || get_class(\$GLOBALS['_smarty_conf_obj']) != 'config_file')\n" . " \$GLOBALS['_smarty_conf_obj'] = new Config_File('".$this->config_dir."');\n" . - "if (isset(\$parent_smarty_config) && $update_parent)\n" . - " \$parent_smarty_config = array_merge((array)\$parent_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file']."));\n" . + "if (isset(\$_smarty_config_parent) && $update_parent)\n" . + " \$_smarty_config_parent = array_merge((array)\$_smarty_config_parent, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file']."));\n" . "\$_smarty_config = array_merge((array)\$_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file']."));\n"; if (!empty($attrs['section'])) { - $output .= "if (isset(\$parent_smarty_config) && $update_parent)\n" . - " \$parent_smarty_config = array_merge((array)\$parent_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file'].", ".$attrs['section']."));\n" . + $output .= "if (isset(\$_smarty_config_parent) && $update_parent)\n" . + " \$_smarty_config_parent = array_merge((array)\$_smarty_config_parent, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file'].", ".$attrs['section']."));\n" . "\$_smarty_config = array_merge((array)\$_smarty_config, \$GLOBALS['_smarty_conf_obj']->get(".$attrs['file'].", ".$attrs['section']."));\n"; } @@ -449,17 +449,18 @@ class Smarty_Compiler extends Smarty { return ""; }