r49933 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49932‎ | r49933 | r49934 >
Date:06:25, 27 April 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Add default value for preference
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -49,7 +49,9 @@
5050 $wgHooks['AlternateEdit'][] = 'TranslateEditAddons::intro';
5151 $wgHooks['EditPageBeforeEditButtons'][] = 'TranslateEditAddons::buttonHack';
5252
 53+$wgDefaultUserOptions['translate'] = 0;
5354 $wgHooks['GetPreferences'][] = 'TranslatePreferences::onGetPreferences';
 55+
5456 $wgHooks['SpecialRecentChangesQuery'][] = 'TranslateRcFilter::translationFilter';
5557 $wgHooks['SpecialRecentChangesPanel'][] = 'TranslateRcFilter::translationFilterForm';
5658 $wgHooks['SkinTemplateToolboxEnd'][] = 'TranslateToolbox::toolboxAllTranslations';

Status & tagging log