diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-11 10:45:23 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-11 10:45:23 -0500 |
commit | bc4b5c87a9e899968a0f7af115fa1844348ddaac (patch) | |
tree | 336445255997d54675f3353226783d0eef0bde9f | |
parent | ac6b4319b3e59b1766e8e9278567a90cd3758882 (diff) | |
download | forums-bc4b5c87a9e899968a0f7af115fa1844348ddaac.tar forums-bc4b5c87a9e899968a0f7af115fa1844348ddaac.tar.gz forums-bc4b5c87a9e899968a0f7af115fa1844348ddaac.tar.bz2 forums-bc4b5c87a9e899968a0f7af115fa1844348ddaac.tar.xz forums-bc4b5c87a9e899968a0f7af115fa1844348ddaac.zip |
[ticket/11388] Do not modify by reference
PHPBB3-11388
-rw-r--r-- | phpBB/includes/style/style.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/phpBB/includes/style/style.php b/phpBB/includes/style/style.php index 06c16fdef4..7001d10f21 100644 --- a/phpBB/includes/style/style.php +++ b/phpBB/includes/style/style.php @@ -132,12 +132,13 @@ class phpbb_style $this->provider->set_styles($paths); $this->locator->set_paths($this->provider); - foreach ($paths as &$path) + $new_paths = array(); + foreach ($paths as $path) { - $path .= '/template/'; + $new_paths = $path . '/template/'; } - $this->template->set_style_names($this->names, $paths, ($style_directories === array('styles'))); + $this->template->set_style_names($this->names, $new_paths1, ($style_directories === array('styles'))); return true; } @@ -174,12 +175,13 @@ class phpbb_style $this->locator->set_template_path($template_path); } - foreach ($paths as &$path) + $new_paths = array(); + foreach ($paths as $path) { - $path .= '/' . (($template_path !== false) ? $template_path : 'template/'); + $new_paths = $path . '/' . (($template_path !== false) ? $template_path : 'template/'); } - $this->template->set_style_names($names, $paths); + $this->template->set_style_names($names, $new_paths); return true; } |