diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-10-12 18:39:29 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-10-12 18:39:29 +0200 |
commit | f90b16df0d1c4a17c1874b1416f8c21495d7b4f7 (patch) | |
tree | 4e08af03ce6a260f586d75cbb9d188b4864f3157 /phpBB/includes/functions_acp.php | |
parent | a5ab2eb564eeb33d9cd97a4c21b2fb8f340f9120 (diff) | |
download | forums-f90b16df0d1c4a17c1874b1416f8c21495d7b4f7.tar forums-f90b16df0d1c4a17c1874b1416f8c21495d7b4f7.tar.gz forums-f90b16df0d1c4a17c1874b1416f8c21495d7b4f7.tar.bz2 forums-f90b16df0d1c4a17c1874b1416f8c21495d7b4f7.tar.xz forums-f90b16df0d1c4a17c1874b1416f8c21495d7b4f7.zip |
[ticket/14234] Use replacement variables instead of references in events
PHPBB3-14234
Diffstat (limited to 'phpBB/includes/functions_acp.php')
-rw-r--r-- | phpBB/includes/functions_acp.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index eea18a0c47..b6f9de98f3 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -383,6 +383,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars) $tpl .= $vars['append']; } + $new_ary = $new; /** * Overwrite the html code we display for the config value * @@ -392,14 +393,17 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars) * 1 [optional] => string: size, int: minimum * 2 [optional] => string: max. length, int: maximum * @var string key Should be used for the id attribute in html - * @var array new Array with the config values we display + * @var array new_var Array with the config values we display * @var string name Should be used for the name attribute * @var array vars Array with the options for the config * @var string tpl The resulting html code we display * @since 3.1.0-a1 + * @change 3.1.7-RC1 Replaced new with new_ary */ - $vars = array('tpl_type', 'key', 'new', 'name', 'vars', 'tpl'); + $vars = array('tpl_type', 'key', 'new_ary', 'name', 'vars', 'tpl'); extract($phpbb_dispatcher->trigger_event('core.build_config_template', compact($vars))); + $new = $new_ary; + unset($new); return $tpl; } |