X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMediaWikiVersionFetcher.php;h=c3fb4869adc62025e79085c956aaf5e041a46a5f;hb=e271a4f3eb533c05b9ea1a7a46e4608c55017bae;hp=1d59ec30973fa38bd6ad2f72a1518d75a7eefb8e;hpb=35d5ee18b117e643649257bce582c27a43e86abc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWikiVersionFetcher.php b/includes/MediaWikiVersionFetcher.php index 1d59ec3097..c3fb4869ad 100644 --- a/includes/MediaWikiVersionFetcher.php +++ b/includes/MediaWikiVersionFetcher.php @@ -19,7 +19,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 +28,4 @@ class MediaWikiVersionFetcher { return $matches[1]; } -} \ No newline at end of file +}