From 3ab2b4439adc65af386a13b95d030376691325f5 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 20 Sep 2013 00:54:05 +0200 Subject: [PATCH] Re-add version_compare (>= 1.22wmf18) Follows-up 98cf7e35e. Change-Id: I07a63effb5cdb14e48c6b69780fe71dc24f17fd9 --- TemplateData.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TemplateData.php b/TemplateData.php index 6b8a87e3..7a6138dc 100644 --- a/TemplateData.php +++ b/TemplateData.php @@ -6,6 +6,11 @@ * @ingroup Extensions */ +if ( version_compare( $wgVersion, '1.22wmf18', '<' ) ) { + echo "Extension:TemplateData requires MediaWiki 1.22 or higher.\n"; + exit( 1 ); +} + $wgExtensionCredits['parserhook'][] = array( 'path' => __FILE__, 'name' => 'TemplateData',