Index: trunk/extensions/SemanticDrilldown/specials/SD_Filters.php |
— | — | @@ -5,8 +5,6 @@ |
6 | 6 | * @author Yaron Koren |
7 | 7 | */ |
8 | 8 | |
9 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
10 | | - |
11 | 9 | class SDFilters extends SpecialPage { |
12 | 10 | |
13 | 11 | /** |
— | — | @@ -15,7 +13,7 @@ |
16 | 14 | function __construct() { |
17 | 15 | parent::__construct( 'Filters' ); |
18 | 16 | // Backwards compatibility for MediaWiki < 1.16 |
19 | | - if ( function_exists( 'wfLoadExtensionMessages' ) ) { |
| 17 | + if ( version_compare( $GLOBALS['wgVersion'], '1.16', '<' ) ) { |
20 | 18 | wfLoadExtensionMessages( 'SemanticDrilldown' ); |
21 | 19 | } |
22 | 20 | } |
Index: trunk/extensions/SemanticDrilldown/specials/SD_CreateFilter.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | public function SDCreateFilter() { |
18 | 18 | parent::__construct( 'CreateFilter' ); |
19 | 19 | // Backwards compatibility for MediaWiki < 1.16 |
20 | | - if ( function_exists( 'wfLoadExtensionMessages' ) ) { |
| 20 | + if ( version_compare( $GLOBALS['wgVersion'], '1.16', '<' ) ) { |
21 | 21 | wfLoadExtensionMessages( 'SemanticDrilldown' ); |
22 | 22 | } |
23 | 23 | } |
Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | public function __construct() { |
18 | 18 | parent::__construct( 'BrowseData' ); |
19 | 19 | // Backwards compatibility for MediaWiki < 1.16 |
20 | | - if ( function_exists( 'wfLoadExtensionMessages' ) ) { |
| 20 | + if ( version_compare( $GLOBALS['wgVersion'], '1.16', '<' ) ) { |
21 | 21 | wfLoadExtensionMessages( 'SemanticDrilldown' ); |
22 | 22 | } |
23 | 23 | } |