MediaWiki  master
WebInstallerReleaseNotes.php
Go to the documentation of this file.
1 <?php
23 
28  protected function getFileName() {
29  if ( !preg_match( '/^(\d+)\.(\d+).*/i', MW_VERSION, $result ) ) {
30  throw new MWException( 'Constant MW_VERSION has an invalid value.' );
31  }
32 
33  return 'RELEASE-NOTES-' . $result[1] . '.' . $result[2];
34  }
35 
36 }
WebInstallerDocument
Definition: WebInstallerDocument.php:22
WebInstallerReleaseNotes\getFileName
getFileName()
Definition: WebInstallerReleaseNotes.php:28
MW_VERSION
const MW_VERSION
The running version of MediaWiki.
Definition: Defines.php:36
WebInstallerReleaseNotes
Definition: WebInstallerReleaseNotes.php:22
MWException
MediaWiki exception.
Definition: MWException.php:29