Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * Initialization file for SemanticInternalObjects |
| 4 | + * Initialization file for SemanticInternalObjects. |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @ingroup SemanticInternalObjects |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | |
13 | 13 | define( 'SIO_VERSION', '0.6' ); |
14 | 14 | |
15 | | -$wgExtensionCredits['parserhook'][] = array( |
| 15 | +$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'parserhook'][] = array( |
16 | 16 | 'path' => __FILE__, |
17 | 17 | 'name' => 'Semantic Internal Objects', |
18 | 18 | 'version' => SIO_VERSION, |
— | — | @@ -38,10 +38,10 @@ |
39 | 39 | return true; // always return true, in order not to stop MW's hook processing! |
40 | 40 | } |
41 | 41 | |
42 | | -function siofLanguageGetMagic( &$magicWords, $langCode = "en" ) { |
| 42 | +function siofLanguageGetMagic( &$magicWords, $langCode = 'en' ) { |
43 | 43 | switch ( $langCode ) { |
44 | 44 | default: |
45 | 45 | $magicWords['set_internal'] = array ( 0, 'set_internal' ); |
46 | 46 | } |
47 | 47 | return true; |
48 | | -} |
| 48 | +} |
\ No newline at end of file |