From: Aaron Schulz Date: Wed, 20 Aug 2008 09:43:46 +0000 (+0000) Subject: Load messages in a less shitty and more consistent manner for extensions. Previously... X-Git-Tag: 1.31.0-rc.0~45778 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=28e11ec83955ea04f1fc8cfd2919288004f2c9a8;p=lhc%2Fweb%2Fwiklou.git Load messages in a less shitty and more consistent manner for extensions. Previously relied on logName() being called. Failed miserably for extracts. --- diff --git a/includes/LogPage.php b/includes/LogPage.php index 27554308bd..647cc0115c 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -136,7 +136,8 @@ class LogPage { * @return string Headertext of this logtype */ static function logHeader( $type ) { - global $wgLogHeaders; + global $wgLogHeaders, $wgMessageCache; + $wgMessageCache->loadAllMessages(); return wfMsgExt($wgLogHeaders[$type],array('parseinline')); } @@ -145,8 +146,9 @@ class LogPage { * @return HTML string */ static function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false ) { - global $wgLang, $wgContLang, $wgLogActions; + global $wgLang, $wgContLang, $wgLogActions, $wgMessageCache; + $wgMessageCache->loadAllMessages(); $key = "$type/$action"; if( $key == 'patrol/patrol' )