aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2013-07-12 00:03:06 -0400
committerDavid King <imkingdavid@gmail.com>2013-07-12 00:03:06 -0400
commit068d35065278bf52e85fcc96b629d25712f19c26 (patch)
treea9d18fb1efe8885b709d7eaa7262fb209ac15e44 /phpBB/includes/functions.php
parent3a87a6b7007c015cf722b7a4e49f2880ba38f533 (diff)
downloadforums-068d35065278bf52e85fcc96b629d25712f19c26.tar
forums-068d35065278bf52e85fcc96b629d25712f19c26.tar.gz
forums-068d35065278bf52e85fcc96b629d25712f19c26.tar.bz2
forums-068d35065278bf52e85fcc96b629d25712f19c26.tar.xz
forums-068d35065278bf52e85fcc96b629d25712f19c26.zip
[ticket/11215] Don't try to correct paths during tests
PHPBB3-11215
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 420a13c200..40583dee54 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2421,7 +2421,7 @@ function append_sid($url, $params = false, $is_amp = true, $session_id = false)
$params = false;
}
- $corrected_root = phpbb_get_web_root_path($symfony_request);
+ $corrected_root = $symfony_request !== null ? phpbb_get_web_root_path($symfony_request) : '';
if ($corrected_root)
{
$url = $corrected_root . substr($url, strlen($phpbb_root_path));