X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMediaWikiVersionFetcher.php;h=943bc9fcf32ca969629ec07f039235fa6073017d;hb=0eebe5dca53affdf21404a10b808ea3faa5c67b7;hp=1d59ec30973fa38bd6ad2f72a1518d75a7eefb8e;hpb=c2665e4b6e615c80e4126f1ff343e7f9f3018dcc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWikiVersionFetcher.php b/includes/MediaWikiVersionFetcher.php index 1d59ec3097..943bc9fcf3 100644 --- a/includes/MediaWikiVersionFetcher.php +++ b/includes/MediaWikiVersionFetcher.php @@ -4,7 +4,6 @@ * Provides access to MediaWiki's version without requiring MediaWiki (or anything else) * being loaded first. * - * @licence GNU GPL v2+ * @author Jeroen De Dauw < jeroendedauw@gmail.com > */ class MediaWikiVersionFetcher { @@ -19,7 +18,7 @@ class MediaWikiVersionFetcher { $defaultSettings = file_get_contents( __DIR__ . '/DefaultSettings.php' ); $matches = array(); - preg_match( "/wgVersion = '([0-9a-zA-Z\.]+)';/", $defaultSettings, $matches ); + preg_match( "/wgVersion = '([0-9a-zA-Z\.\-]+)';/", $defaultSettings, $matches ); if ( count( $matches ) !== 2 ) { throw new RuntimeException( 'Could not extract the MediaWiki version from DefaultSettings.php' ); @@ -28,4 +27,4 @@ class MediaWikiVersionFetcher { return $matches[1]; } -} \ No newline at end of file +}