r63410 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63409‎ | r63410 | r63411 >
Date:20:06, 8 March 2010
Author:catrope
Status:ok
Tags:
Comment:
Backport r63394 (Fix bug in LocalisationCache preventing extensions from changing preloaded messages) to 1.16
Modified paths:
  • /branches/REL1_16/phase3/includes/LocalisationCache.php (modified) (history)

Diff [purge]

Index: branches/REL1_16/phase3/includes/LocalisationCache.php
@@ -586,9 +586,6 @@
587587 $allData['defaultUserOptionOverrides'] = array();
588588 }
589589
590 - # Set the preload key
591 - $allData['preload'] = $this->buildPreload( $allData );
592 -
593590 # Set the list keys
594591 $allData['list'] = array();
595592 foreach ( self::$splitKeys as $key ) {
@@ -603,6 +600,9 @@
604601 'Check that your languages/messages/MessagesEn.php file is intact.' );
605602 }
606603
 604+ # Set the preload key
 605+ $allData['preload'] = $this->buildPreload( $allData );
 606+
607607 # Save to the process cache and register the items loaded
608608 $this->data[$code] = $allData;
609609 foreach ( $allData as $key => $item ) {
Property changes on: branches/REL1_16/phase3/includes/LocalisationCache.php
___________________________________________________________________
Name: svn:mergeinfo
610610 + /branches/REL1_15/phase3/includes/LocalisationCache.php:51646
/branches/sqlite/includes/LocalisationCache.php:58211-58321
/branches/wmf-deployment/includes/LocalisationCache.php:53381
/trunk/phase3/includes/LocalisationCache.php:63394

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r63394Build preload l10ncache after running hooks, not before, so extension changes...catrope14:43, 8 March 2010

Status & tagging log