MediaWiki
master
WebInstallerReleaseNotes.php
Go to the documentation of this file.
1
<?php
2
23
namespace
MediaWiki\Installer
;
24
25
use LogicException;
26
27
class
WebInstallerReleaseNotes
extends
WebInstallerDocument
{
28
32
protected
function
getFileName
() {
33
if
( !preg_match(
'/^(\d+)\.(\d+).*/i'
,
MW_VERSION
, $result ) ) {
34
throw
new
LogicException(
'Constant MW_VERSION has an invalid value.'
);
35
}
36
37
return
'RELEASE-NOTES-'
. $result[1] .
'.'
. $result[2];
38
}
39
40
}
MW_VERSION
const MW_VERSION
The running version of MediaWiki.
Definition
Defines.php:37
MediaWiki\Installer\WebInstallerDocument
Definition
WebInstallerDocument.php:24
MediaWiki\Installer\WebInstallerReleaseNotes
Definition
WebInstallerReleaseNotes.php:27
MediaWiki\Installer\WebInstallerReleaseNotes\getFileName
getFileName()
Definition
WebInstallerReleaseNotes.php:32
MediaWiki\Installer
Definition
CliInstaller.php:23
includes
installer
WebInstallerReleaseNotes.php
Generated on Thu Nov 21 2024 09:24:07 for MediaWiki by
1.10.0