if( ( $this->getVar( '_InstallDone' ) || $this->getVar( '_UpgradeDone' ) )
&& $this->request->getVal( 'localsettings' ) )
{
- $this->request->response()->header( 'Content-type: text/plain' );
+ $this->request->response()->header( 'Content-type: application/x-httpd-php' );
$this->request->response()->header(
'Content-Disposition: attachment; filename="LocalSettings.php"'
);
class WebInstaller_Complete extends WebInstallerPage {
public function execute() {
+ // 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;$lsUrl" );
+
$this->startForm();
$this->addHTML(
$this->parent->getInfoBox(
wfMsgNoTrans( 'config-install-done',
- $GLOBALS['wgServer'] . $this->parent->getURL( array( 'localsettings' => 1 ) ),
+ $lsUrl,
$GLOBALS['wgServer'] .
$this->getVar( 'wgScriptPath' ) . '/index' .
$this->getVar( 'wgScriptExtension' )