MediaWiki master
WebInstallerReleaseNotes.php
Go to the documentation of this file.
1<?php
2
23namespace MediaWiki\Installer;
24
25use LogicException;
26
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}
const MW_VERSION
The running version of MediaWiki.
Definition Defines.php:37