Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | class TranslateEditAddons { |
14 | 14 | const MSG = 'translate-edit-'; |
15 | 15 | |
16 | | - static function addNavigation( &$outputpage, &$text ) { |
| 16 | + static function addedNavigation( &$text ) { |
17 | 17 | global $wgUser, $wgTitle; |
18 | 18 | |
19 | 19 | if ( !self::isMessageNamespace( $wgTitle ) ) return true; |
— | — | @@ -119,6 +119,7 @@ |
120 | 120 | static function addTools( $object ) { |
121 | 121 | if ( !self::isMessageNamespace( $object->mTitle ) ) return true; |
122 | 122 | |
| 123 | + TranslateEditAddons::addedNavigation( $object->editFormTextTop ); |
123 | 124 | $object->editFormTextTop .= self::editBoxes( $object ); |
124 | 125 | |
125 | 126 | return true; |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -49,7 +49,6 @@ |
50 | 50 | $wgSpecialPageGroups['PageTranslation'] = 'pagetools'; |
51 | 51 | |
52 | 52 | $wgHooks['EditPage::showEditForm:initial'][] = 'TranslateEditAddons::addTools'; |
53 | | -$wgHooks['OutputPageBeforeHTML'][] = 'TranslateEditAddons::addNavigation'; |
54 | 53 | $wgHooks['AlternateEdit'][] = 'TranslateEditAddons::intro'; |
55 | 54 | $wgHooks['EditPageBeforeEditButtons'][] = 'TranslateEditAddons::buttonHack'; |
56 | 55 | $wgHooks['EditPage::showEditForm:fields'][] = 'TranslateEditAddons::keepFields'; |