Index: trunk/extensions/Widgets/Widgets.php |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | require_once( $dir . 'smarty/Smarty.class.php' ); |
52 | 52 | $wgExtensionMessagesFiles['Widgets'] = $dir . 'Widgets.i18n.php'; |
53 | 53 | |
54 | | -if( version_compare( $wgVersion, '1.16alpha', '>=' ) ) { |
| 54 | +if( defined('MW_SUPPORTS_LOCALISATIONCACHE') ) { |
55 | 55 | $wgExtensionMessagesFiles['WidgetsMagic'] = $dir . 'Widgets.i18n.magic.php'; |
56 | 56 | } else { |
57 | 57 | // Pre 1.16alpha backward compatibility for magic words |