MediaWiki master
WebInstallerWelcome.php
Go to the documentation of this file.
1<?php
2
9namespace MediaWiki\Installer;
10
12
14
18 public function execute() {
19 if ( $this->parent->request->wasPosted() && $this->getVar( '_Environment' ) ) {
20 return 'continue';
21 }
22 $this->parent->output->addWikiTextAsInterface( wfMessage( 'config-welcome' )->plain() );
23 $status = $this->parent->doEnvironmentChecks();
24 if ( $status->isGood() ) {
25 $this->parent->showSuccess( 'config-env-good' );
26 $this->parent->output->addWikiTextAsInterface(
27 wfMessage( 'config-welcome-section-copyright',
28 SpecialVersion::getCopyrightAndAuthorList(),
29 $this->parent->getVar( 'wgServer' ) .
30 $this->parent->getDocUrl( 'Copying' )
31 )->plain()
32 );
33 $this->startForm();
34 $this->endForm();
35 } else {
36 $this->parent->showStatusMessage( $status );
37 }
38
39 return '';
40 }
41
42}
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')
Version information about MediaWiki (core, extensions, libs), PHP, and the database.