From 4d8b00bdf69c789b75192b0d90f9c53abb1ddca6 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Wed, 9 May 2007 17:35:34 +0000 Subject: [PATCH] wisdom from IRC :) --- includes/GlobalFunctions.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 3c902ded61..949a45c931 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -449,6 +449,17 @@ function wfMsgWeirdKey ( $key ) { function wfMsgGetKey( $key, $useDB, $forContent = false, $transform = true ) { global $wgParser, $wgContLang, $wgMessageCache, $wgLang; + /* btw, is all that code in wfMsgGetKey() that check + * if the message cache exists of not really necessary, or is + * it just paranoia? + * Vyznev: it's probably not necessary + * I think I wrote it in an attempt to report DB + * connection errors properly + * but eventually we gave up on using the + * message cache for that and just hard-coded the strings + * it may have other uses, it's not mere paranoia + */ + if ( is_object( $wgMessageCache ) ) $transstat = $wgMessageCache->getTransform(); -- 2.20.1