r25878 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25877‎ | r25878 | r25879 >
Date:10:17, 16 September 2007
Author:midom
Status:old
Tags:
Comment:
Apparently some languages (aawiki) end up having null $defaultUserOptionOverrides - returning empty array instead.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -316,7 +316,12 @@
317317
318318 function getDefaultUserOptionOverrides() {
319319 $this->load();
320 - return $this->defaultUserOptionOverrides;
 320+ # XXX - apparently some languageas get empty arrays, didn't get to it yet -- midom
 321+ if (is_array($this->defaultUserOptionOverrides)) {
 322+ return $this->defaultUserOptionOverrides;
 323+ } else {
 324+ return array();
 325+ }
321326 }
322327
323328 function getExtraUserToggles() {

Follow-up revisions

RevisionCommit summaryAuthorDate
r25932Merged revisions 25861-25931 via svnmerge from...david06:43, 19 September 2007

Status & tagging log