From 9aafcca999afdec9e3520f5340f7135bc9322f97 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 30 Aug 2004 05:11:21 +0000 Subject: [PATCH] When using wfMsgNoDB(), *don't use the cached messsages!* This restores Special:Allmessages to working order; previously it was showing the MediaWiki: message in both columns, which is not too helpful. --- includes/MessageCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 67ec220812..485b10eb3a 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -187,7 +187,7 @@ class MessageCache } $message = false; - if ( !$this->mDisable ) { + if ( !$this->mDisable && $useDB ) { $title = $wgLang->ucfirst( $key ); @@ -197,7 +197,7 @@ class MessageCache } # If it wasn't in the cache, load each message from the DB individually - if ( !$message && $useDB) { + if ( !$message ) { $dbr =& wfGetDB( DB_SLAVE ); $result = $dbr->getArray( 'cur', array('cur_text'), array( 'cur_namespace' => NS_MEDIAWIKI, 'cur_title' => $title ), -- 2.20.1