aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_compatibility.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-10-27 14:54:17 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-10-27 14:54:17 +0100
commit47759eb09649bbd4893cc926bf1782cd99674700 (patch)
treee49ad5c85411dc6ff2048ff67fccf7137062c765 /phpBB/includes/functions_compatibility.php
parent51251293abb40e04e290df2f937504cfaabde43b (diff)
downloadforums-47759eb09649bbd4893cc926bf1782cd99674700.tar
forums-47759eb09649bbd4893cc926bf1782cd99674700.tar.gz
forums-47759eb09649bbd4893cc926bf1782cd99674700.tar.bz2
forums-47759eb09649bbd4893cc926bf1782cd99674700.tar.xz
forums-47759eb09649bbd4893cc926bf1782cd99674700.zip
[ticket/13230] Add missing globals and missing request object for path helper
PHPBB3-13230
Diffstat (limited to 'phpBB/includes/functions_compatibility.php')
-rw-r--r--phpBB/includes/functions_compatibility.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/functions_compatibility.php b/phpBB/includes/functions_compatibility.php
index fbb1f0e03d..43952ae57a 100644
--- a/phpBB/includes/functions_compatibility.php
+++ b/phpBB/includes/functions_compatibility.php
@@ -101,18 +101,21 @@ function phpbb_clean_path($path)
}
else if (!$phpbb_path_helper)
{
+ global $phpbb_root_path, $phpEx;
+
// The container is not yet loaded, use a new instance
if (!class_exists('\phpbb\path_helper'))
{
- global $phpbb_root_path, $phpEx;
require($phpbb_root_path . 'phpbb/path_helper.' . $phpEx);
}
+ $request = new phpbb\request\request();
$phpbb_path_helper = new phpbb\path_helper(
new phpbb\symfony_request(
- new phpbb\request\request()
+ $request
),
new phpbb\filesystem(),
+ $request,
$phpbb_root_path,
$phpEx
);