MediaWiki master
WebInstallerWelcome.php
Go to the documentation of this file.
1<?php
2
23namespace MediaWiki\Installer;
24
26
28
32 public function execute() {
33 if ( $this->parent->request->wasPosted() && $this->getVar( '_Environment' ) ) {
34 return 'continue';
35 }
36 $this->parent->output->addWikiTextAsInterface( wfMessage( 'config-welcome' )->plain() );
37 $status = $this->parent->doEnvironmentChecks();
38 if ( $status->isGood() ) {
39 $this->parent->showSuccess( 'config-env-good' );
40 $this->parent->output->addWikiTextAsInterface(
41 wfMessage( 'config-welcome-section-copyright',
42 SpecialVersion::getCopyrightAndAuthorList(),
43 $this->parent->getVar( 'wgServer' ) .
44 $this->parent->getDocUrl( 'Copying' )
45 )->plain()
46 );
47 $this->startForm();
48 $this->endForm();
49 } else {
50 $this->parent->showStatusMessage( $status );
51 }
52
53 return '';
54 }
55
56}
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.