Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -254,7 +254,7 @@ |
255 | 255 | } |
256 | 256 | |
257 | 257 | // 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 ) { |
259 | 259 | if ( strpos( $text, '<translate>' ) === false ) { |
260 | 260 | return true; |
261 | 261 | } |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -278,7 +278,7 @@ |
279 | 279 | |
280 | 280 | // Check syntax for <translate> |
281 | 281 | $wgHooks['ArticleSave'][] = 'PageTranslationHooks::tpSyntaxCheck'; |
282 | | - $wgHooks['EditFilter'][] = 'PageTranslationHooks::tpSyntaxCheckForEditPage'; |
| 282 | + $wgHooks['EditFilterMerged'][] = 'PageTranslationHooks::tpSyntaxCheckForEditPage'; |
283 | 283 | |
284 | 284 | // Add transtag to page props for discovery |
285 | 285 | $wgHooks['ArticleSaveComplete'][] = 'PageTranslationHooks::addTranstag'; |