diff options
author | Nils Adermann <naderman@naderman.de> | 2014-10-27 12:25:53 -0700 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2014-10-27 12:25:53 -0700 |
commit | d74bf0f37075dfadf09340b4174c364d208617f6 (patch) | |
tree | aa49a8a5ac13513c160e320102d2eb2a8f577f85 /phpBB/includes | |
parent | 741bac5b2e5991ffaed235866eaf939150596761 (diff) | |
parent | b1d738607563d0bc43bc7e93f81165a3bed6bfa8 (diff) | |
download | forums-d74bf0f37075dfadf09340b4174c364d208617f6.tar forums-d74bf0f37075dfadf09340b4174c364d208617f6.tar.gz forums-d74bf0f37075dfadf09340b4174c364d208617f6.tar.bz2 forums-d74bf0f37075dfadf09340b4174c364d208617f6.tar.xz forums-d74bf0f37075dfadf09340b4174c364d208617f6.zip |
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus:
[ticket/13230] Add missing globals and missing request object for path helper
[ticket/13226] Add functional test for group ranks
[ticket/13226] Fix the usage of $rank_img
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_compatibility.php | 7 |
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 ); |