From 28e11ec83955ea04f1fc8cfd2919288004f2c9a8 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 20 Aug 2008 09:43:46 +0000 Subject: [PATCH] Load messages in a less shitty and more consistent manner for extensions. Previously relied on logName() being called. Failed miserably for extracts. --- includes/LogPage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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' ) -- 2.20.1