r52167 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52166‎ | r52167 | r52168 >
Date:16:14, 19 June 2009
Author:jdpond
Status:deferred
Tags:
Comment:
Was not loading localization information correctly for versions of MediaWiki < 1.11
Modified paths:
  • /trunk/extensions/DiscussionThreading/DiscussionThreading.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DiscussionThreading/DiscussionThreading.php
@@ -47,7 +47,8 @@
4848 global $wgVersion;
4949 $xversion = explode(".",$wgVersion);
5050 if ($xversion[0] <= "1" && $xversion[1] <= "11") {
51 - global $wgMessageCache, $messages;
 51+ global $wgMessageCache, $messages,$wgExtensionMessagesFiles;
 52+ require_once($wgExtensionMessagesFiles['DiscussionThreading']);
5253 foreach( $messages as $lang => $LangMsg )
5354 $wgMessageCache->addMessages( $LangMsg, $lang );
5455 } else wfLoadExtensionMessages( 'DiscussionThreading' );

Status & tagging log