MediaWiki REL1_39
WebInstallerWelcome.php
Go to the documentation of this file.
1<?php
23
27 public function execute() {
28 if ( $this->parent->request->wasPosted() && $this->getVar( '_Environment' ) ) {
29 return 'continue';
30 }
31 $this->parent->output->addWikiTextAsInterface( wfMessage( 'config-welcome' )->plain() );
32 $status = $this->parent->doEnvironmentChecks();
33 if ( $status->isGood() ) {
34 $this->parent->output->addHTML( '<span class="success-message">' .
35 wfMessage( 'config-env-good' )->escaped() . '</span>' );
36 $this->parent->output->addWikiTextAsInterface(
37 wfMessage( 'config-welcome-section-copyright',
39 wfExpandUrl( $this->parent->getDocUrl( 'Copying' ) )
40 )->plain()
41 );
42 $this->startForm();
43 $this->endForm();
44 } else {
45 $this->parent->showStatusMessage( $status );
46 }
47
48 return '';
49 }
50
51}
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
static getCopyrightAndAuthorList()
Get the "MediaWiki is copyright 2001-20xx by lots of cool folks" text.
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')