diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-09-19 12:03:04 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-09-19 12:03:04 +0200 |
commit | eaef881e7d193f0f3fe4ce297091dd440d08e9b3 (patch) | |
tree | f034cedfd372bf66e720e6b461e101c1e9144cba /phpBB/phpbb/controller | |
parent | de7ed7c286968895169252ef477faffd1123a05b (diff) | |
download | forums-eaef881e7d193f0f3fe4ce297091dd440d08e9b3.tar forums-eaef881e7d193f0f3fe4ce297091dd440d08e9b3.tar.gz forums-eaef881e7d193f0f3fe4ce297091dd440d08e9b3.tar.bz2 forums-eaef881e7d193f0f3fe4ce297091dd440d08e9b3.tar.xz forums-eaef881e7d193f0f3fe4ce297091dd440d08e9b3.zip |
[ticket/13073] Properly place comments in helper
PHPBB3-13073
Diffstat (limited to 'phpBB/phpbb/controller')
-rw-r--r-- | phpBB/phpbb/controller/helper.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/phpbb/controller/helper.php b/phpBB/phpbb/controller/helper.php index 5bca8edbaa..4b93cd505a 100644 --- a/phpBB/phpbb/controller/helper.php +++ b/phpBB/phpbb/controller/helper.php @@ -140,14 +140,13 @@ class helper // If enable_mod_rewrite is false we need to replace the current front-end by app.php, otherwise we need to remove it. $base_url = str_replace('/' . $page_name, empty($this->config['enable_mod_rewrite']) ? '/app.' . $this->php_ext : '', $base_url); + // We need to update the base url to move to the directory of the app.php file if (empty($this->config['enable_mod_rewrite'])) { - // We need to update the base url to move to the directory of the app.php file. $base_url = str_replace('/app.' . $this->php_ext, '/' . $this->phpbb_root_path . 'app.' . $this->php_ext, $base_url); } else { - // We need to append the phpbb_root_path for proper routes $base_url .= preg_replace('#[\\/\\\]$#', '', preg_replace('#^\.#', '', $this->phpbb_root_path)); } |