MediaWiki master
WebInstallerComplete.php
Go to the documentation of this file.
1<?php
22namespace MediaWiki\Installer;
23
25
26 public function execute() {
27 // Pop up a dialog box, to make it difficult for the user to forget
28 // to download the file
29 $lsPath = $this->parent->getUrl( [ 'localsettings' => 1 ] );
30 $lsUrl = $this->parent->getDefaultServer() . $lsPath;
31 $this->parent->request->response()->header( "Refresh: 0;url=$lsPath" );
32 $this->startForm();
33 $this->parent->disableLinkPopups();
34 $location = $this->parent->getLocalSettingsLocation();
35 $msg = 'config-install-done';
36 if ( $location !== false ) {
37 $msg = 'config-install-done-path';
38 }
39 $this->parent->showSuccess( $msg,
40 $lsUrl,
41 $this->getVar( 'wgServer' ) .
42 $this->getVar( 'wgScriptPath' ) . '/index.php',
43 "[$lsUrl " . wfMessage( 'config-download-localsettings' )->plain() . ']',
44 $location ?: ''
45 );
46 $this->addHTML( $this->parent->getInfoBox(
47 wfMessage( 'config-extension-link' )->plain() ) );
48
49 $this->parent->restoreLinkPopups();
50 $this->endForm( false, false );
51 return '';
52 }
53
54}
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')