Index: trunk/extensions/MetaKeywords/MetaKeywords.php |
— | — | @@ -116,7 +116,7 @@ |
117 | 117 | } |
118 | 118 | |
119 | 119 | //Updates the cache if [[MediaWiki:Metakeywords]] or [[MediaWiki:Metadescription]] has been edited |
120 | | -function wfMetaKeywordClearCache( &$article, &$wgUser, &$text ) { |
| 120 | +function wfMetaKeywordClearCache( &$article, &$wgUser, $text ) { |
121 | 121 | global $wgMemc; |
122 | 122 | $title = $article->mTitle; |
123 | 123 | |
Index: trunk/extensions/Transliterator/Transliterator_body.php |
— | — | @@ -525,7 +525,7 @@ |
526 | 526 | |
527 | 527 | /** |
528 | 528 | * Remove the article from the Transliterator caches. |
529 | | - * (ArticlePurge, ArticleDeleteComplete, NewRevisionFromEditComplete hooks) |
| 529 | + * (ArticlePurge, ArticleDeleteComplete) |
530 | 530 | */ |
531 | 531 | static function purgeArticle( &$article ) { |
532 | 532 | $title = $article->getTitle(); |
— | — | @@ -533,10 +533,19 @@ |
534 | 534 | } |
535 | 535 | |
536 | 536 | /** |
| 537 | + * Remove the article from the Transliterator caches. |
| 538 | + * (NewRevisionFromEditComplete) |
| 539 | + */ |
| 540 | + static function purgeArticleNewRevision( $article ) { |
| 541 | + $title = $article->getTitle(); |
| 542 | + return self::purgeTitle( $title ); |
| 543 | + } |
| 544 | + |
| 545 | + /** |
537 | 546 | * Remove the title from the Transliterator caches. |
538 | 547 | * (TitleMoveComplete hook) |
539 | 548 | */ |
540 | | - static function purgeNewTitle ( &$title, &$newtitle ) { |
| 549 | + static function purgeNewTitle( &$title, &$newtitle ) { |
541 | 550 | return self::purgeTitle( $newtitle ); |
542 | 551 | } |
543 | 552 | |
— | — | @@ -560,7 +569,7 @@ |
561 | 570 | * |
562 | 571 | * (EditFilter hook) |
563 | 572 | */ |
564 | | - static function validate( &$editPage, $text, $section, &$hookError ) { |
| 573 | + static function validate( $editPage, $text, $section, &$hookError ) { |
565 | 574 | // FIXME: Should not access private variables |
566 | 575 | $title = $editPage->mTitle; |
567 | 576 | if ( self::isMapPage( $title ) ) { |
— | — | @@ -576,7 +585,7 @@ |
577 | 586 | * Prepend any error message caused by parsing the text for preview. |
578 | 587 | * (EditPageGetPreviewText hook) |
579 | 588 | */ |
580 | | - static function preview( &$editPage, $text ) { |
| 589 | + static function preview( $editPage, &$text ) { |
581 | 590 | self::validate( $editPage, $text, null, $hookError ); |
582 | 591 | if ( $hookError ) { |
583 | 592 | $text = $hookError . "\n----\n" . $text; |
Index: trunk/extensions/Transliterator/Transliterator.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | $wgHooks['ParserFirstCallInit'][] = 'ExtTransliterator::setup'; |
38 | 38 | # Purge the cache for as many cases as I can find. |
39 | 39 | $wgHooks['ArticleDeleteComplete'][] = 'ExtTransliterator::purgeArticle'; |
40 | | -$wgHooks['NewRevisionFromEditComplete'][] = 'ExtTransliterator::purgeArticle'; |
| 40 | +$wgHooks['NewRevisionFromEditComplete'][] = 'ExtTransliterator::purgeArticleNewRevision'; |
41 | 41 | $wgHooks['ArticlePurge'][] = 'ExtTransliterator::purgeArticle'; |
42 | 42 | $wgHooks['ArticleUndelete'][] = 'ExtTransliterator::purgeTitle'; |
43 | 43 | $wgHooks['TitleMoveComplete'][] = 'ExtTransliterator::purgeNewtitle'; |