Index: trunk/extensions/SemanticCompoundQueries/SemanticCompoundQueries.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | |
13 | 13 | define( 'SCQ_VERSION', '0.2.5' ); |
14 | 14 | |
15 | | -$wgExtensionCredits['parserhook'][] = array( |
| 15 | +$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'parserhook'][] = array( |
16 | 16 | 'path' => __FILE__, |
17 | 17 | 'name' => 'Semantic Compound Queries', |
18 | 18 | 'version' => SCQ_VERSION, |
— | — | @@ -22,7 +22,6 @@ |
23 | 23 | |
24 | 24 | $wgExtensionMessagesFiles['SemanticCompoundQueries'] = dirname( __FILE__ ) . '/SemanticCompoundQueries.i18n.php'; |
25 | 25 | |
26 | | - |
27 | 26 | $wgHooks['ParserFirstCallInit'][] = 'scqgRegisterParser'; |
28 | 27 | // FIXME: Can be removed when new style magic words are used (introduced in r52503) |
29 | 28 | $wgHooks['LanguageGetMagic'][] = 'scqgLanguageGetMagic'; |