r67824 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67823‎ | r67824 | r67825 >
Date:18:17, 10 June 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix part 1 of section editing
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -254,7 +254,7 @@
255255 }
256256
257257 // To display nice error for editpage
258 - public static function tpSyntaxCheckForEditPage( $editpage, $text, $section, &$error, $summary ) {
 258+ public static function tpSyntaxCheckForEditPage( $editpage, $text, &$error, $summary ) {
259259 if ( strpos( $text, '<translate>' ) === false ) {
260260 return true;
261261 }
Index: trunk/extensions/Translate/Translate.php
@@ -278,7 +278,7 @@
279279
280280 // Check syntax for <translate>
281281 $wgHooks['ArticleSave'][] = 'PageTranslationHooks::tpSyntaxCheck';
282 - $wgHooks['EditFilter'][] = 'PageTranslationHooks::tpSyntaxCheckForEditPage';
 282+ $wgHooks['EditFilterMerged'][] = 'PageTranslationHooks::tpSyntaxCheckForEditPage';
283283
284284 // Add transtag to page props for discovery
285285 $wgHooks['ArticleSaveComplete'][] = 'PageTranslationHooks::addTranstag';

Status & tagging log