r60701 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60700‎ | r60701 | r60702 >
Date:23:10, 5 January 2010
Author:sergeychernyshev
Status:ok
Tags:
Comment:
Fix for r58517. Using MW_SUPPORTS_LOCALISATIONCACHE for capability checking instead of version checking.
Modified paths:
  • /trunk/extensions/Widgets/Widgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Widgets/Widgets.php
@@ -50,7 +50,7 @@
5151 require_once( $dir . 'smarty/Smarty.class.php' );
5252 $wgExtensionMessagesFiles['Widgets'] = $dir . 'Widgets.i18n.php';
5353
54 -if( version_compare( $wgVersion, '1.16alpha', '>=' ) ) {
 54+if( defined('MW_SUPPORTS_LOCALISATIONCACHE') ) {
5555 $wgExtensionMessagesFiles['WidgetsMagic'] = $dir . 'Widgets.i18n.magic.php';
5656 } else {
5757 // Pre 1.16alpha backward compatibility for magic words

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r58517Added backwards compatible Magic Words handling similar to r55348 per Siebran...sergeychernyshev05:51, 4 November 2009

Status & tagging log