aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/controller
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/controller')
-rw-r--r--phpBB/includes/controller/helper.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/phpBB/includes/controller/helper.php b/phpBB/includes/controller/helper.php
index 8bb4427382..6b697c7e46 100644
--- a/phpBB/includes/controller/helper.php
+++ b/phpBB/includes/controller/helper.php
@@ -48,12 +48,6 @@ class phpbb_controller_helper
protected $php_ext;
/**
- * Base URL
- * @var array
- */
- protected $url_base;
-
- /**
* Constructor
*
* @param phpbb_template $template Template object
@@ -101,21 +95,7 @@ class phpbb_controller_helper
*/
public function url(array $url_parts, $query = '')
{
- return append_sid($this->root_path . $this->url_base . implode('/', $url_parts), $query);
- }
-
- /**
- * Set base to prepend to urls generated by url()
- * This allows extensions to have a certain 'directory' under which
- * all their pages are served, but not have to type it every time
- *
- * @param array $url_parts Each array element is a 'folder'
- * i.e. array('my', 'ext') maps to ./app.php/my/ext
- * @return null
- */
- public function set_url_base(array $url_parts)
- {
- $this->url_base = !empty($url_parts) ? implode('/', $url_parts) . '/' : '';
+ return append_sid($this->root_path . implode('/', $url_parts), $query);
}
/**