MediaWiki  1.34.0
WebInstallerWelcome.php
Go to the documentation of this file.
1 <?php
22 class WebInstallerWelcome extends WebInstallerPage {
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 }
WebInstallerWelcome
Definition: WebInstallerWelcome.php:22
SpecialVersion\getCopyrightAndAuthorList
static getCopyrightAndAuthorList()
Get the "MediaWiki is copyright 2001-20xx by lots of cool guys" text.
Definition: SpecialVersion.php:196
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition: GlobalFunctions.php:1264
$status
return $status
Definition: SyntaxHighlight.php:347
WebInstallerWelcome\execute
execute()
Definition: WebInstallerWelcome.php:27
wfExpandUrl
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
Definition: GlobalFunctions.php:491