Bug 26683: Unable to download index.php from localhost message displayed at complete...
authorMax Semenik <maxsem@users.mediawiki.org>
Sun, 20 Feb 2011 08:29:25 +0000 (08:29 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Sun, 20 Feb 2011 08:29:25 +0000 (08:29 +0000)
includes/installer/WebInstallerPage.php

index 60f6d58..b225ec7 100644 (file)
@@ -1060,7 +1060,9 @@ class WebInstaller_Complete extends WebInstallerPage {
                // Pop up a dialog box, to make it difficult for the user to forget
                // to download the file
                $lsUrl = $GLOBALS['wgServer'] . $this->parent->getURL( array( 'localsettings' => 1 ) );
-               $this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" );
+               $this->addHtml( '<script type="' . $GLOBALS['wgJsMimeType'] . '">jQuery( document ).ready( function() { document.location='
+                       . Xml::encodeJsVar( $lsUrl) . "; } );</script>\n" );
+               // JS appears the only method that works consistently with IE7+
 
                $this->startForm();
                $this->parent->disableLinkPopups();