MediaWiki
1.34.4
WebInstallerReleaseNotes.php
Go to the documentation of this file.
1
<?php
22
class
WebInstallerReleaseNotes
extends
WebInstallerDocument
{
23
28
protected
function
getFileName
() {
29
global
$wgVersion
;
30
31
if
( !preg_match(
'/^(\d+)\.(\d+).*/i'
,
$wgVersion
, $result ) ) {
32
throw
new
MWException
(
'Variable $wgVersion has an invalid value.'
);
33
}
34
35
return
'RELEASE-NOTES-'
. $result[1] .
'.'
. $result[2];
36
}
37
38
}
WebInstallerDocument
Definition:
WebInstallerDocument.php:22
$wgVersion
$wgVersion
MediaWiki version number.
Definition:
DefaultSettings.php:76
WebInstallerReleaseNotes\getFileName
getFileName()
Definition:
WebInstallerReleaseNotes.php:28
WebInstallerReleaseNotes
Definition:
WebInstallerReleaseNotes.php:22
MWException
MediaWiki exception.
Definition:
MWException.php:26
includes
installer
WebInstallerReleaseNotes.php
Generated on Thu Sep 24 2020 22:29:42 for MediaWiki by
1.8.18