MediaWiki
master
Toggle main menu visibility
WebInstallerComplete.php
Go to the documentation of this file.
1
<?php
7
8
namespace
MediaWiki\Installer;
9
10
class
WebInstallerComplete
extends
WebInstallerPage
{
11
13
public
function
execute
() {
14
// Pop up a dialog box, to make it difficult for the user to forget
15
// to download the file
16
$lsPath = $this->parent->getUrl( [
'localsettings'
=> 1 ] );
17
$lsUrl = $this->parent->getDefaultServer() . $lsPath;
18
$this->parent->request->response()->header(
"Refresh: 0;url=$lsPath"
);
19
$this->
startForm
();
20
$this->parent->disableLinkPopups();
21
$location = $this->parent->getLocalSettingsLocation();
22
$msg =
'config-install-done'
;
23
if
( $location !==
false
) {
24
$msg =
'config-install-done-path'
;
25
}
26
$this->parent->showSuccess( $msg,
27
$lsUrl,
28
$this->
getVar
(
'wgServer'
) .
29
$this->
getVar
(
'wgScriptPath'
) .
'/index.php'
,
30
"[$lsUrl "
.
wfMessage
(
'config-download-localsettings'
)->plain() .
']'
,
31
$location ?:
''
32
);
33
$this->
addHTML
( $this->parent->getInfoBox(
34
wfMessage
(
'config-extension-link'
)->plain() ) );
35
36
$this->parent->restoreLinkPopups();
37
$this->
endForm
(
false
,
false
);
38
return
''
;
39
}
40
41
}
wfMessage
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Definition
GlobalFunctions.php:548
MediaWiki\Installer\WebInstallerComplete
Definition
WebInstallerComplete.php:10
MediaWiki\Installer\WebInstallerComplete\execute
execute()
string
Definition
WebInstallerComplete.php:13
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\getVar
getVar( $var, $default=null)
Definition
WebInstallerPage.php:140
MediaWiki\Installer\WebInstallerPage\addHTML
addHTML( $html)
Definition
WebInstallerPage.php:51
MediaWiki\Installer\WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:55
includes
Installer
WebInstallerComplete.php
Generated on
for MediaWiki by
1.18.0