http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72459
Revision: 72459
Author: jeluf
Date: 2010-09-05 21:54:01 +0000 (Sun, 05 Sep 2010)
Log Message:
-----------
Firefox interpretes links starting with // as if they would start with http://.
If the wiki is installed in /, we get // as path
Modified Paths:
--------------
trunk/phase3/includes/templates/NoLocalSettings.php
Modified: trunk/phase3/includes/templates/NoLocalSettings.php
===================================================================
--- trunk/phase3/includes/templates/NoLocalSettings.php 2010-09-05 21:37:50 UTC
(rev 72458)
+++ trunk/phase3/includes/templates/NoLocalSettings.php 2010-09-05 21:54:01 UTC
(rev 72459)
@@ -11,6 +11,7 @@
}
$script = $_SERVER['SCRIPT_NAME'];
$path = pathinfo( $script, PATHINFO_DIRNAME ) . '/';
+$path = str_replace( '//', '/', $path );
$ext = pathinfo( $script, PATHINFO_EXTENSION );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs