MediaWiki master
WebInstallerComplete.php
Go to the documentation of this file.
1<?php
22namespace MediaWiki\Installer;
23
24use HtmlArmor;
26
28
29 public function execute() {
30 // Pop up a dialog box, to make it difficult for the user to forget
31 // to download the file
32 $lsUrl = $this->getVar( 'wgServer' ) . $this->parent->getUrl( [ 'localsettings' => 1 ] );
33 $this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" );
34 $this->startForm();
35 $this->parent->disableLinkPopups();
36 $location = $this->parent->getLocalSettingsLocation();
37 $msg = 'config-install-done';
38 if ( $location !== false ) {
39 // config-install-done-path
40 $msg .= '-path';
41 }
42 $this->addHTML(
43 $this->parent->getInfoBox(
44 new HtmlArmor( wfMessage( $msg,
45 $lsUrl,
46 $this->getVar( 'wgServer' ) .
47 $this->getVar( 'wgScriptPath' ) . '/index.php',
48 Message::rawParam( $this->parent->makeDownloadLinkHtml() ),
49 $location ?: ''
50 )->parse() ), 'tick-32.png'
51 )
52 );
53 $this->addHTML( $this->parent->getInfoBox(
54 wfMessage( 'config-extension-link' )->plain() ) );
55
56 $this->parent->restoreLinkPopups();
57 $this->endForm( false, false );
58 return '';
59 }
60
61}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Marks HTML that shouldn't be escaped.
Definition HtmlArmor.php:30
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')
The Message class deals with fetching and processing of interface message into a variety of formats.
Definition Message.php:158