From 06f42f433bfb43b43d147d78bd04a35b7529cde4 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Mon, 15 Sep 2014 20:25:20 +0200 Subject: [ticket/13034] Add comment PHPBB3-13034 --- phpBB/phpbb/controller/helper.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'phpBB/phpbb/controller/helper.php') 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); -- cgit v1.2.1