1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-08 08:35:31 +02:00

[ticket/11334] Properly generate controller URL until paths issue gets fixed

PHPBB3-11334
This commit is contained in:
David King 2013-01-18 14:00:40 -05:00
parent 02fd181198
commit 8c512b0d2d

View File

@ -85,17 +85,14 @@ class phpbb_controller_helper
}
/**
* Easily generate a URL
* Generate a URL
*
* @param array $url_parts Each array element is a 'folder'
* i.e. array('my', 'ext') maps to ./app.php/my/ext
* @param mixed $query The Query string, passed directly into the second
* argument of append_sid()
* @return string A URL that has already been run through append_sid()
* @param string $route The route to travel
* @return string The URL already passed through append_sid()
*/
public function url(array $url_parts, $query = '')
protected function url($route)
{
return append_sid($this->phpbb_root_path . implode('/', $url_parts), $query);
return append_sid($this->phpbb_root_path . 'app.' . $this->php_ext, array('controller' => $route));
}
/**