r47661 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47660‎ | r47661 | r47662 >
Date:14:05, 22 February 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Suppress intro
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -81,6 +81,12 @@
8282 return true;
8383 }
8484
 85+ static function intro( $object ) {
 86+ $object->suppressIntro = true;
 87+ return true;
 88+ }
 89+
 90+
8591 static function addTools( $object ) {
8692 $object->editFormTextTop .= self::editBoxes( $object );
8793 return true;
Index: trunk/extensions/Translate/Translate.php
@@ -45,6 +45,8 @@
4646
4747 $wgHooks['EditPage::showEditForm:initial'][] = 'TranslateEditAddons::addTools';
4848 $wgHooks['OutputPageBeforeHTML'][] = 'TranslateEditAddons::addNavigation';
 49+$wgHooks['AlternateEdit'][] = 'TranslateEditAddons::intro';
 50+
4951 $wgHooks['UserToggles'][] = 'TranslatePreferences::TranslateUserToggles';
5052 $wgHooks['SpecialRecentChangesQuery'][] = 'TranslateRcFilter::translationFilter';
5153 $wgHooks['SpecialRecentChangesPanel'][] = 'TranslateRcFilter::translationFilterForm';

Status & tagging log