aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php9
-rw-r--r--phpBB/includes/functions_content.php5
2 files changed, 6 insertions, 8 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) ? '?' : '');
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index ff75a5b05d..b8314c076c 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -110,7 +110,7 @@ function gen_sort_selects(&$limit_days, &$sort_by_text, &$sort_days, &$sort_key,
*/
function make_jumpbox($action, $forum_id = false, $select_all = false, $acl_list = false, $force_display = false)
{
- global $config, $auth, $template, $user, $db, $phpbb_container;
+ global $config, $auth, $template, $user, $db, $phpbb_path_helper;
// We only return if the jumpbox is not forced to be displayed (in case it is needed for functionality)
if (!$config['load_jumpbox'] && $force_display === false)
@@ -196,8 +196,7 @@ function make_jumpbox($action, $forum_id = false, $select_all = false, $acl_list
$db->sql_freeresult($result);
unset($padding_store);
- $path_helper = $phpbb_container->get('path_helper');
- $url_parts = $path_helper->get_url_parts($action);
+ $url_parts = $phpbb_path_helper->get_url_parts($action);
$template->assign_vars(array(
'S_DISPLAY_JUMPBOX' => $display_jumpbox,