aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-22 12:40:28 -0700
committerCesar G <prototech91@gmail.com>2014-04-22 15:21:03 -0700
commitc2ac76e8b11c0cfb5917febe90f56216d74bc10a (patch)
treed39d50000c45d5accc47ea4db4c1774a44fe2c67 /phpBB/includes/functions.php
parente287eea2c6c1530c843ca57d75c35f0e5062507d (diff)
downloadforums-c2ac76e8b11c0cfb5917febe90f56216d74bc10a.tar
forums-c2ac76e8b11c0cfb5917febe90f56216d74bc10a.tar.gz
forums-c2ac76e8b11c0cfb5917febe90f56216d74bc10a.tar.bz2
forums-c2ac76e8b11c0cfb5917febe90f56216d74bc10a.tar.xz
forums-c2ac76e8b11c0cfb5917febe90f56216d74bc10a.zip
[ticket/11508] Use $phpbb_path_helper.
PHPBB3-11508
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 17cc109432..6e5f6896a6 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2344,10 +2344,9 @@ function reapply_sid($url)
*/
function build_url($strip_vars = false)
{
- global $config, $user, $phpbb_container;
+ global $config, $user, $phpbb_path_helper;
- $path_helper = $phpbb_container->get('path_helper');
- $php_ext = $path_helper->get_php_ext();
+ $php_ext = $phpbb_path_helper->get_php_ext();
$page = $user->page['page'];
// We need to be cautious here.
@@ -2365,7 +2364,7 @@ function build_url($strip_vars = false)
$page = substr($page, strlen('app.' . $php_ext . '/'));
}
- $page = $path_helper->get_phpbb_root_path() . $page;
+ $page = $phpbb_path_helper->get_phpbb_root_path() . $page;
}
// Append SID
@@ -2373,7 +2372,7 @@ function build_url($strip_vars = false)
if ($strip_vars !== false)
{
- $redirect = $path_helper->strip_url_params($redirect, $strip_vars, false);
+ $redirect = $phpbb_path_helper->strip_url_params($redirect, $strip_vars, false);
}
return $redirect . ((strpos($redirect, '?') === false) ? '?' : '');