aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/controller
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-04 23:20:06 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-16 19:44:58 +0200
commitbb5d6a2551f7329162424f1ae0edcd711b4bd5e6 (patch)
tree8104700330bf5cb9946c432344357ca3a211cf3c /phpBB/phpbb/controller
parentdab6b99bcda411027d040c3b985460990f2a117a (diff)
downloadforums-bb5d6a2551f7329162424f1ae0edcd711b4bd5e6.tar
forums-bb5d6a2551f7329162424f1ae0edcd711b4bd5e6.tar.gz
forums-bb5d6a2551f7329162424f1ae0edcd711b4bd5e6.tar.bz2
forums-bb5d6a2551f7329162424f1ae0edcd711b4bd5e6.tar.xz
forums-bb5d6a2551f7329162424f1ae0edcd711b4bd5e6.zip
[ticket/13036] Add unit tests
PHPBB3-13036
Diffstat (limited to 'phpBB/phpbb/controller')
-rw-r--r--phpBB/phpbb/controller/helper.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/phpbb/controller/helper.php b/phpBB/phpbb/controller/helper.php
index 77fe5cb3a8..e2932086db 100644
--- a/phpBB/phpbb/controller/helper.php
+++ b/phpBB/phpbb/controller/helper.php
@@ -155,6 +155,11 @@ class helper
$route_url = str_replace(array('&amp;', '&'), array('&', '&amp;'), $route_url);
}
+ if ($reference_type === UrlGeneratorInterface::RELATIVE_PATH && empty($this->config['enable_mod_rewrite']))
+ {
+ $route_url = 'app.' . $this->php_ext . '/' . $route_url;
+ }
+
return append_sid($route_url . $anchor, false, $is_amp, $session_id, true);
}