r26201 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26200‎ | r26201 | r26202 >
Date:09:01, 28 September 2007
Author:nikerabbit
Status:old
Tags:
Comment:
* Load all messages because extensions can add new logs
Modified paths:
  • /trunk/phase3/includes/LogPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogPage.php
@@ -116,9 +116,10 @@
117117 * @static
118118 */
119119 public static function logName( $type ) {
120 - global $wgLogNames;
 120+ global $wgLogNames, $wgMessageCache;
121121
122122 if( isset( $wgLogNames[$type] ) ) {
 123+ $wgMessageCache->loadAllMessages();
123124 return str_replace( '_', ' ', wfMsg( $wgLogNames[$type] ) );
124125 } else {
125126 // Bogus log types? Perhaps an extension was removed.

Follow-up revisions

RevisionCommit summaryAuthorDate
r26257Merged revisions 26134-26247 via svnmerge from...david19:06, 30 September 2007

Status & tagging log