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->output->addHTML(
40 '<div class="cdx-message cdx-message--block cdx-message--success">' .
41 '<span class="cdx-message__icon"></span> <div class="cdx-message__content">' .
42 wfMessage( 'config-env-good' )->escaped() . '</div></div>' );
43 $this->parent->output->addWikiTextAsInterface(
44 wfMessage( 'config-welcome-section-copyright',
45 SpecialVersion::getCopyrightAndAuthorList(),
46 $this->parent->getVar( 'wgServer' ) .
47 $this->parent->getDocUrl( 'Copying' )
48 )->plain()
49 );
50 $this->startForm();
51 $this->endForm();
52 } else {
53 $this->parent->showStatusMessage( $status );
54 }
55
56 return '';
57 }
58
59}
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.