BryanDavis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/287989
Change subject: www: Fix "undefined constant SCRIPT_NAME"
......................................................................
www: Fix "undefined constant SCRIPT_NAME"
Change-Id: If45ac86f9fd92a2b87ef66737186033759319f53
---
M www/index.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/labs/toollabs
refs/changes/89/287989/1
diff --git a/www/index.php b/www/index.php
index 98e067b..e6bfd2d 100644
--- a/www/index.php
+++ b/www/index.php
@@ -11,7 +11,7 @@
}
$uri = $orig;
$uri = preg_replace( '@^/admin@', '', $uri );
-$uri = preg_replace( "@^({$_SERVER[SCRIPT_NAME]})+/?@", '/', $uri );
+$uri = preg_replace( "@^({$_SERVER['SCRIPT_NAME']})+/?@", '/', $uri );
if ( $uri !== '/' ) {
// Are we handling a request for a static resource?
--
To view, visit https://gerrit.wikimedia.org/r/287989
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If45ac86f9fd92a2b87ef66737186033759319f53
Gerrit-PatchSet: 1
Gerrit-Project: labs/toollabs
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits