r99311 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99310‎ | r99311 | r99312 >
Date:14:04, 8 October 2011
Author:junaidpv
Status:reverted
Tags:
Comment:
Narayam: Handle unavailable languages. Fix r99310.
Modified paths:
  • /trunk/extensions/Narayam/Narayam.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/Narayam.hooks.php
@@ -62,7 +62,9 @@
6363
6464 $mandatorySchemes = array ();
6565 foreach ($wgNarayamAlwaysLoadForLanguages as $languageCode) {
66 - $mandatorySchemes += $wgNarayamSchemes[$languageCode];
 66+ if ( isset( $wgNarayamSchemes[$languageCode] ) ) {
 67+ $mandatorySchemes += $wgNarayamSchemes[$languageCode];
 68+ }
6769 }
6870
6971 $userlangCode = $wgLang->getCode();

Follow-up revisions

RevisionCommit summaryAuthorDate
r99684Narayam: Revert r99310 and r99311.junaidpv14:55, 13 October 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99310Narayam: Some wiki may need to load schemes for certain languages always load...junaidpv13:54, 8 October 2011

Status & tagging log