aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/controller/helper.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-15 20:25:20 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-15 20:25:20 +0200
commit06f42f433bfb43b43d147d78bd04a35b7529cde4 (patch)
tree1a37dd70ae040ae9ac3dfb12e338b9ad8c8fe495 /phpBB/phpbb/controller/helper.php
parentb9e7ed004c5830ce2a965702e6c8dc570291cf9b (diff)
downloadforums-06f42f433bfb43b43d147d78bd04a35b7529cde4.tar
forums-06f42f433bfb43b43d147d78bd04a35b7529cde4.tar.gz
forums-06f42f433bfb43b43d147d78bd04a35b7529cde4.tar.bz2
forums-06f42f433bfb43b43d147d78bd04a35b7529cde4.tar.xz
forums-06f42f433bfb43b43d147d78bd04a35b7529cde4.zip
[ticket/13034] Add comment
PHPBB3-13034
Diffstat (limited to 'phpBB/phpbb/controller/helper.php')
-rw-r--r--phpBB/phpbb/controller/helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/phpbb/controller/helper.php b/phpBB/phpbb/controller/helper.php
index 6ad6dd1e24..afa3c4dfa9 100644
--- a/phpBB/phpbb/controller/helper.php
+++ b/phpBB/phpbb/controller/helper.php
@@ -125,6 +125,8 @@ class helper
$script_name = $this->symfony_request->getScriptName();
$page_name = substr($script_name, -1, 1) == '/' ? '' : utf8_basename($script_name);
+
+ // If enable_mod_rewrite is false we need to replace the current front-end by app.php, otherwise we need to remove it.
$context->setBaseUrl(str_replace('/' . $page_name, empty($this->config['enable_mod_rewrite']) ? '/app.' . $this->php_ext : '', $context->getBaseUrl()));
$url_generator = new UrlGenerator($this->route_collection, $context);