From: mgooley Date: Wed, 4 Feb 2015 05:40:34 +0000 (-0600) Subject: Fixed a path issue in NoLocalSettings X-Git-Tag: 1.31.0-rc.0~12370^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=6d94435705c6bb749832992b5e93d87244e0733e;p=lhc%2Fweb%2Fwiklou.git Fixed a path issue in NoLocalSettings Added a break in the else statement, because the only time it will go to else will be if it hits a page (.php), in which case we don't need to continue any further because we have the full path needed to access resources. (Image and link location) Bug: T88168 Change-Id: If948b12bb09260d6ea119c3478b90225537b9786 --- diff --git a/includes/templates/NoLocalSettings.php b/includes/templates/NoLocalSettings.php index 5b88dfd1fa..824a3156d5 100644 --- a/includes/templates/NoLocalSettings.php +++ b/includes/templates/NoLocalSettings.php @@ -39,6 +39,7 @@ foreach ( array_filter( explode( '/', $_SERVER['PHP_SELF'] ) ) as $part ) { $path .= "$part/"; } else { $ext = $matches[1] == 'php5' ? 'php5' : 'php'; + break; } }