Fixed a path issue in NoLocalSettings
authormgooley <g0013y@gmail.com>
Wed, 4 Feb 2015 05:40:34 +0000 (23:40 -0600)
committerMgooley <g0013y@gmail.com>
Mon, 9 Feb 2015 20:53:59 +0000 (20:53 +0000)
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

index 5b88dfd..824a315 100644 (file)
@@ -39,6 +39,7 @@ foreach ( array_filter( explode( '/', $_SERVER['PHP_SELF'] ) ) as $part ) {
                $path .= "$part/";
        } else {
                $ext = $matches[1] == 'php5' ? 'php5' : 'php';
+               break;
        }
 }