MediaWiki REL1_31
WebInstallerReleaseNotes.php
Go to the documentation of this file.
1<?php
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}
$wgVersion
MediaWiki version number.
MediaWiki exception.