Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 17 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| WebInstallerWelcome | |
0.00% |
0 / 17 |
|
0.00% |
0 / 1 |
20 | |
0.00% |
0 / 1 |
| execute | |
0.00% |
0 / 17 |
|
0.00% |
0 / 1 |
20 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @license GPL-2.0-or-later |
| 5 | * @file |
| 6 | * @ingroup Installer |
| 7 | */ |
| 8 | |
| 9 | namespace MediaWiki\Installer; |
| 10 | |
| 11 | use MediaWiki\Specials\SpecialVersion; |
| 12 | |
| 13 | class WebInstallerWelcome extends WebInstallerPage { |
| 14 | |
| 15 | /** |
| 16 | * @return string |
| 17 | */ |
| 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 | } |