r70676 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70675‎ | r70676 | r70677 >
Date:07:36, 8 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r70664, added support for SEMANTIC extension type
Modified paths:
  • /trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.php
@@ -1,6 +1,6 @@
22 <?php
33 /**
4 - * Initialization file for SemanticInternalObjects
 4+ * Initialization file for SemanticInternalObjects.
55 *
66 * @file
77 * @ingroup SemanticInternalObjects
@@ -11,7 +11,7 @@
1212
1313 define( 'SIO_VERSION', '0.6' );
1414
15 -$wgExtensionCredits['parserhook'][] = array(
 15+$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'parserhook'][] = array(
1616 'path' => __FILE__,
1717 'name' => 'Semantic Internal Objects',
1818 'version' => SIO_VERSION,
@@ -38,10 +38,10 @@
3939 return true; // always return true, in order not to stop MW's hook processing!
4040 }
4141
42 -function siofLanguageGetMagic( &$magicWords, $langCode = "en" ) {
 42+function siofLanguageGetMagic( &$magicWords, $langCode = 'en' ) {
4343 switch ( $langCode ) {
4444 default:
4545 $magicWords['set_internal'] = array ( 0, 'set_internal' );
4646 }
4747 return true;
48 -}
 48+}
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r70664Added SpecialVersionExtensionTypes hook for SEMANTIC extensionsjeroendedauw06:27, 8 August 2010

Status & tagging log