| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
namespace MediaWiki\Installer; |
| 23 |
|
| 24 |
class WebInstallerComplete extends WebInstallerPage { |
| 25 |
|
| 26 |
public function execute() { |
| 27 |
|
| 28 |
|
| 29 |
$lsUrl = $this->getVar( 'wgServer' ) . $this->parent->getUrl( [ 'localsettings' => 1 ] ); |
| 30 |
$this->parent->request->response()->header( "Refresh: 0;url=$lsUrl" ); |
| 31 |
$this->startForm(); |
| 32 |
$this->parent->disableLinkPopups(); |
| 33 |
$location = $this->parent->getLocalSettingsLocation(); |
| 34 |
$msg = 'config-install-done'; |
| 35 |
if ( $location !== false ) { |
| 36 |
$msg = 'config-install-done-path'; |
| 37 |
} |
| 38 |
$this->parent->showSuccess( $msg, |
| 39 |
$lsUrl, |
| 40 |
$this->getVar( 'wgServer' ) . |
| 41 |
$this->getVar( 'wgScriptPath' ) . '/index.php', |
| 42 |
"[$lsUrl " . wfMessage( 'config-download-localsettings' )->plain() . ']', |
| 43 |
$location ?: '' |
| 44 |
); |
| 45 |
$this->addHTML( $this->parent->getInfoBox( |
| 46 |
wfMessage( 'config-extension-link' )->plain() ) ); |
| 47 |
|
| 48 |
$this->parent->restoreLinkPopups(); |
| 49 |
$this->endForm( false, false ); |
| 50 |
return ''; |
| 51 |
} |
| 52 |
|
| 53 |
} |