MediaWiki master
WebInstallerComplete.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Installer;
9
11
13 public function execute() {
14 // Pop up a dialog box, to make it difficult for the user to forget
15 // to download the file
16 $lsPath = $this->parent->getUrl( [ 'localsettings' => 1 ] );
17 $lsUrl = $this->parent->getDefaultServer() . $lsPath;
18 $this->parent->request->response()->header( "Refresh: 0;url=$lsPath" );
19 $this->startForm();
20 $this->parent->disableLinkPopups();
21 $location = $this->parent->getLocalSettingsLocation();
22 $msg = 'config-install-done';
23 if ( $location !== false ) {
24 $msg = 'config-install-done-path';
25 }
26 $this->parent->showSuccess( $msg,
27 $lsUrl,
28 $this->getVar( 'wgServer' ) .
29 $this->getVar( 'wgScriptPath' ) . '/index.php',
30 "[$lsUrl " . wfMessage( 'config-download-localsettings' )->plain() . ']',
31 $location ?: ''
32 );
33 $this->addHTML( $this->parent->getInfoBox(
34 wfMessage( 'config-extension-link' )->plain() ) );
35
36 $this->parent->restoreLinkPopups();
37 $this->endForm( false, false );
38 return '';
39 }
40
41}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')