From 488fa60a71f78b47c18cb25911f7204e56138418 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 28 Sep 2007 09:01:32 +0000 Subject: [PATCH] * Load all messages because extensions can add new logs --- includes/LogPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index ce53e85989..e58f65fdd9 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -116,9 +116,10 @@ class LogPage { * @static */ public static function logName( $type ) { - global $wgLogNames; + global $wgLogNames, $wgMessageCache; if( isset( $wgLogNames[$type] ) ) { + $wgMessageCache->loadAllMessages(); return str_replace( '_', ' ', wfMsg( $wgLogNames[$type] ) ); } else { // Bogus log types? Perhaps an extension was removed. -- 2.20.1