diff options
author | David King <imkingdavid@gmail.com> | 2013-09-12 09:27:54 -0700 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2013-09-12 09:27:54 -0700 |
commit | 310844fb7d0330d4329bd59c3d6d50d01caaa4d4 (patch) | |
tree | 3d333bc53be3a2ac0087ca851dd396a1ec90396f /phpBB | |
parent | 2f91fc9f6c6d479fdf286fa34047b1599b89d87d (diff) | |
download | forums-310844fb7d0330d4329bd59c3d6d50d01caaa4d4.tar forums-310844fb7d0330d4329bd59c3d6d50d01caaa4d4.tar.gz forums-310844fb7d0330d4329bd59c3d6d50d01caaa4d4.tar.bz2 forums-310844fb7d0330d4329bd59c3d6d50d01caaa4d4.tar.xz forums-310844fb7d0330d4329bd59c3d6d50d01caaa4d4.zip |
[ticket/11824] Revert changes in functions.php
These will be added in another PR
PHPBB3-11824
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index f19931fbc3..4d2d704a43 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -5733,7 +5733,6 @@ function phpbb_create_symfony_request(phpbb_request $request) */ function phpbb_get_web_root_path(Request $symfony_request, $phpbb_root_path = '') { - global $phpEx; static $path; if (null !== $path) { @@ -5749,8 +5748,9 @@ function phpbb_get_web_root_path(Request $symfony_request, $phpbb_root_path = '' $corrections = substr_count($path_info, '/'); - // We need to account for whether or not app.php is in the URL - if (strpos($symfony_request->server->get('REQUEST_URI', ''), 'app.' . $phpEx . '/') === false) + // When URL Rewriting is enabled, app.php is optional. We have to + // correct for it not being there + if (strpos($symfony_request->getRequestUri(), $symfony_request->getScriptName()) === false) { $corrections -= 1; } |