r70744 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70743‎ | r70744 | r70745 >
Date:06:25, 9 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r70742 - fixed forgotten return
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php
@@ -10,7 +10,6 @@
1111
1212 require_once( 'SMW_GlobalFunctions.php' );
1313
14 -
1514 /**
1615 * Function to switch on Semantic MediaWiki. This function must be called in
1716 * LocalSettings.php after including SMW_Settings.php. It is used to ensure
@@ -59,7 +58,6 @@
6059 $wgHooks['SpecialVersionExtensionTypes'][] = 'smwfOldAddSemanticExtensionType';
6160 }
6261
63 -
6462 // Register special pages aliases file
6563 $wgExtensionAliasesFiles['SemanticMediaWiki'] = $smwgIP . 'languages/SMW_Aliases.php';
6664
@@ -280,7 +278,7 @@
281279 * @return true
282280 */
283281 function smwfOldAddSemanticExtensionType( SpecialVersion &$oSpecialVersion, array &$aExtensionTypes ) {
284 - smwfAddSemanticExtensionType( $aExtensionTypes );
 282+ return smwfAddSemanticExtensionType( $aExtensionTypes );
285283 }
286284
287285 /**
@@ -457,11 +455,13 @@
458456 */
459457 function smwfInitContentLanguage( $langcode ) {
460458 global $smwgIP, $smwgContLang;
 459+
461460 if ( !empty( $smwgContLang ) ) { return; }
462461 wfProfileIn( 'smwfInitContentLanguage (SMW)' );
463462
464463 $smwContLangFile = 'SMW_Language' . str_replace( '-', '_', ucfirst( $langcode ) );
465464 $smwContLangClass = 'SMWLanguage' . str_replace( '-', '_', ucfirst( $langcode ) );
 465+
466466 if ( file_exists( $smwgIP . 'languages/' . $smwContLangFile . '.php' ) ) {
467467 include_once( $smwgIP . 'languages/' . $smwContLangFile . '.php' );
468468 }
@@ -474,4 +474,4 @@
475475 $smwgContLang = new $smwContLangClass();
476476
477477 wfProfileOut( 'smwfInitContentLanguage (SMW)' );
478 -}
 478+}
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r70742Follow up to r70741jeroendedauw06:16, 9 August 2010

Status & tagging log