aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/controller
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-15 15:21:15 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-15 15:21:15 +0100
commit3b0cdc53629c3a852762ae9b96b809cf4b1af2c4 (patch)
tree0884d8236fd20c3bac3a11bc662a8b74848cf689 /phpBB/includes/controller
parent9157095cdabe629765ab0583f2850c2d4771c1d1 (diff)
downloadforums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar.gz
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar.bz2
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar.xz
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.zip
[ticket/11334] Allow parameters to be specified in the route
PHPBB3-11334
Diffstat (limited to 'phpBB/includes/controller')
-rw-r--r--phpBB/includes/controller/helper.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/controller/helper.php b/phpBB/includes/controller/helper.php
index 1464267711..46c6307cb4 100644
--- a/phpBB/includes/controller/helper.php
+++ b/phpBB/includes/controller/helper.php
@@ -95,6 +95,13 @@ class phpbb_controller_helper
*/
public function url($route, $params = false, $is_amp = true, $session_id = false)
{
+ $route_params = '';
+ if (($route_delim = strpos($route, '?')) !== false)
+ {
+ $route_params = substr($route, $route_delim);
+ $route = substr($route, 0, $route_delim);
+ }
+
if (is_array($params) && !empty($params))
{
$params = array_merge(array(
@@ -110,7 +117,7 @@ class phpbb_controller_helper
$params = array('controller' => $route);
}
- return append_sid($this->phpbb_root_path . 'app' . $this->php_ext, $params, $is_amp, $session_id);
+ return append_sid($this->phpbb_root_path . 'app' . $this->php_ext . $route_params, $params, $is_amp, $session_id);
}
/**