Load messages in a less shitty and more consistent manner for extensions. Previously...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 20 Aug 2008 09:43:46 +0000 (09:43 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 20 Aug 2008 09:43:46 +0000 (09:43 +0000)
includes/LogPage.php

index 2755430..647cc01 100644 (file)
@@ -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' )