From 6d94435705c6bb749832992b5e93d87244e0733e Mon Sep 17 00:00:00 2001 From: mgooley Date: Tue, 3 Feb 2015 23:40:34 -0600 Subject: [PATCH] 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 --- includes/templates/NoLocalSettings.php | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.20.1