r21659 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21658‎ | r21659 | r21660 >
Date:16:36, 27 April 2007
Author:tstarling
Status:old
Tags:
Comment:
Fix MessageCache issue which caused the MediaWiki namespace to be ignored on the second call to wfMsg() for the same key.
Modified paths:
  • /trunk/phase3/includes/MessageCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/MessageCache.php
@@ -544,8 +544,7 @@
545545 $type = substr( $entry, 0, 1 );
546546
547547 if ( $type == ' ' ) {
548 - $message = substr( $entry, 1 );
549 - $this->mCache[$title] = $message;
 548+ $this->mCache[$title] = $entry;
550549 return $message;
551550 } elseif ( $entry == '!NONEXISTENT' ) {
552551 return false;