Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | * @return true |
93 | 93 | */ |
94 | 94 | function smfSetup() { |
95 | | - global $wgExtensionCredits, $wgLang; |
| 95 | + global $wgExtensionCredits, $wgLang, $wgVersion; |
96 | 96 | |
97 | 97 | // Creation of a list of internationalized service names. |
98 | 98 | $services = array(); |
— | — | @@ -100,9 +100,9 @@ |
101 | 101 | |
102 | 102 | // This function has been deprecated in 1.16, but needed for earlier versions. |
103 | 103 | // It's present in 1.16 as a stub, but lets check if it exists in case it gets removed at some point. |
104 | | - if ( function_exists( 'wfLoadExtensionMessages' ) ) { |
| 104 | + if ( version_compare( $wgVersion, '1.15', '<=' ) ) { |
105 | 105 | wfLoadExtensionMessages( 'SemanticMaps' ); |
106 | | - } |
| 106 | + } |
107 | 107 | |
108 | 108 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array( |
109 | 109 | 'path' => __FILE__, |