MediaWiki
master
Toggle main menu visibility
WebInstallerWelcome.php
Go to the documentation of this file.
1
<?php
2
8
9
namespace
MediaWiki\Installer;
10
11
use MediaWiki\Specials\SpecialVersion;
12
13
class
WebInstallerWelcome
extends
WebInstallerPage
{
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
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:548
MediaWiki\Installer\WebInstallerPage
Abstract class to define pages for the web installer.
Definition
WebInstallerPage.php:19
MediaWiki\Installer\WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:72
MediaWiki\Installer\WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:55
MediaWiki\Installer\WebInstallerWelcome
Definition
WebInstallerWelcome.php:13
MediaWiki\Installer\WebInstallerWelcome\execute
execute()
Definition
WebInstallerWelcome.php:18
includes
Installer
WebInstallerWelcome.php
Generated on
for MediaWiki by
1.18.0