From 31e26a24015ea79af5aa321f9dbd2b170e00ee62 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 5 Sep 2010 21:54:01 +0000 Subject: [PATCH] Firefox interpretes links starting with // as if they would start with http://. If the wiki is installed in /, we get // as path --- includes/templates/NoLocalSettings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/templates/NoLocalSettings.php b/includes/templates/NoLocalSettings.php index 21a6de2966..88510cce49 100644 --- a/includes/templates/NoLocalSettings.php +++ b/includes/templates/NoLocalSettings.php @@ -11,6 +11,7 @@ if ( !isset( $wgVersion ) ) { } $script = $_SERVER['SCRIPT_NAME']; $path = pathinfo( $script, PATHINFO_DIRNAME ) . '/'; +$path = str_replace( '//', '/', $path ); $ext = pathinfo( $script, PATHINFO_EXTENSION ); ?> -- 2.20.1