Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -509,6 +509,7 @@ |
510 | 510 | $article->mTitle->invalidateCache(); |
511 | 511 | } |
512 | 512 | } |
| 513 | + return true; |
513 | 514 | } |
514 | 515 | |
515 | 516 | function updateFromMove( &$movePageForm , &$oldtitle , &$newtitle ) { |
— | — | @@ -517,6 +518,8 @@ |
518 | 519 | array('fr_namespace' => $newtitle->getNamespace(), 'fr_title' => $newtitle->getDBkey() ), |
519 | 520 | array('fr_namespace' => $oldtitle->getNamespace(), 'fr_title' => $oldtitle->getDBkey() ), |
520 | 521 | __METHOD__ ); |
| 522 | + |
| 523 | + return true; |
521 | 524 | } |
522 | 525 | |
523 | 526 | public static function articleLinksUpdate( &$title ) { |
— | — | @@ -534,6 +537,8 @@ |
535 | 538 | } |
536 | 539 | $u = new LinksUpdate( $title, $poutput ); |
537 | 540 | $u->doUpdate(); // this will trigger our hook to add stable links too... |
| 541 | + |
| 542 | + return true; |
538 | 543 | } |
539 | 544 | |
540 | 545 | public static function extraLinksUpdate( &$title ) { |
— | — | @@ -606,6 +611,7 @@ |
607 | 612 | } |
608 | 613 | |
609 | 614 | wfProfileOut( $fname ); |
| 615 | + return true; |
610 | 616 | } |
611 | 617 | |
612 | 618 | static function parserFetchStableTemplate( &$parser, &$title, &$skip, &$id ) { |
— | — | @@ -630,6 +636,7 @@ |
631 | 637 | $id = 0; // Zero for not found |
632 | 638 | $skip = true; |
633 | 639 | } |
| 640 | + return true; |
634 | 641 | } |
635 | 642 | |
636 | 643 | static function parserMakeStableImageLink( &$parser, &$nt, &$skip, &$time ) { |
— | — | @@ -652,6 +659,7 @@ |
653 | 660 | $time = 0; // Zero for not found |
654 | 661 | $skip = true; |
655 | 662 | } |
| 663 | + return true; |
656 | 664 | } |
657 | 665 | |
658 | 666 | static function galleryFindStableFileTime( &$ig, &$nt, &$time ) { |
— | — | @@ -664,6 +672,8 @@ |
665 | 673 | array('fi_rev_id' => $ig->mRevisionId, 'fi_name' => $nt->getDBkey() ), |
666 | 674 | __METHOD__ ); |
667 | 675 | $time = $time ? $time : -1; // hack, will never find this |
| 676 | + |
| 677 | + return true; |
668 | 678 | } |
669 | 679 | |
670 | 680 | static function parserMakeGalleryStable( &$parser, &$ig ) { |
— | — | @@ -672,6 +682,8 @@ |
673 | 683 | return true; |
674 | 684 | |
675 | 685 | $ig->isStable = true; |
| 686 | + |
| 687 | + return true; |
676 | 688 | } |
677 | 689 | |
678 | 690 | static function parserInjectImageTimestamps( &$parser, &$text ) { |
— | — | @@ -687,10 +699,12 @@ |
688 | 700 | $parser->mOutput->mImageTimestamps[$row->img_name] = $row->img_timestamp; |
689 | 701 | } |
690 | 702 | } |
| 703 | + return true; |
691 | 704 | } |
692 | 705 | |
693 | 706 | static function outputInjectImageTimestamps( &$out, &$parserOutput ) { |
694 | 707 | $out->mImageTimestamps = $parserOutput->mImageTimestamps; |
| 708 | + return true; |
695 | 709 | } |
696 | 710 | |
697 | 711 | /** |
— | — | @@ -730,6 +744,7 @@ |
731 | 745 | $log->addEntry('grant1', $user->getUserPage(), wfMsgHtml('makevalidate-autosum') ); |
732 | 746 | } |
733 | 747 | } |
| 748 | + return true; |
734 | 749 | } |
735 | 750 | } |
736 | 751 | |
— | — | @@ -765,7 +780,7 @@ |
766 | 781 | global $wgRequest, $wgTitle, $wgOut, $action; |
767 | 782 | // Only trigger on article view for content pages, not for protect/delete/hist |
768 | 783 | if( !$article || !$article->exists() || !$article->mTitle->isContentPage() || $action !='view' ) |
769 | | - return; |
| 784 | + return true; |
770 | 785 | // Grab page and rev ids |
771 | 786 | $pageid = $article->getId(); |
772 | 787 | $revid = $article->mRevision ? $article->mRevision->mId : $article->getLatest(); |
— | — | @@ -859,6 +874,7 @@ |
860 | 875 | $tag = '<div id="mwrevisiontag" class="mw-warning plainlinks">'.wfMsgExt('revreview-noflagged', array('parseinline')).'</div>'; |
861 | 876 | $wgOut->addHTML( $tag ); |
862 | 877 | } |
| 878 | + return true; |
863 | 879 | } |
864 | 880 | |
865 | 881 | function addToEditView( &$editform ) { |
— | — | @@ -893,7 +909,8 @@ |
894 | 910 | wfMsg('revreview-rating') . parent::addTagRatings( $flags ) . |
895 | 911 | '</span>'; |
896 | 912 | $wgOut->addHTML( '<div id="mwrevisiontag" class="flaggedrevs_notice plainlinks">' . $tag . '</div><br/>' ); |
897 | | - } |
| 913 | + } |
| 914 | + return true; |
898 | 915 | } |
899 | 916 | |
900 | 917 | function addReviewForm( &$out ) { |
— | — | @@ -918,6 +935,8 @@ |
919 | 936 | if( $tfrev ) return true; |
920 | 937 | } |
921 | 938 | $this->addQuickReview( $revId, $out, false ); |
| 939 | + |
| 940 | + return true; |
922 | 941 | } |
923 | 942 | |
924 | 943 | function setPermaLink( &$sktmp, &$nav_urls, &$revid, &$revid ) { |
— | — | @@ -943,6 +962,7 @@ |
944 | 963 | ); |
945 | 964 | } |
946 | 965 | } |
| 966 | + return true; |
947 | 967 | } |
948 | 968 | |
949 | 969 | function setCurrentTab( &$sktmp, &$content_actions ) { |
— | — | @@ -1047,6 +1067,7 @@ |
1048 | 1068 | # Reset static array |
1049 | 1069 | $content_actions = $new_actions; |
1050 | 1070 | } |
| 1071 | + return true; |
1051 | 1072 | } |
1052 | 1073 | |
1053 | 1074 | function addToPageHist( &$article ) { |
— | — | @@ -1062,9 +1083,10 @@ |
1063 | 1084 | if( !$rows ) |
1064 | 1085 | return true; |
1065 | 1086 | |
1066 | | - foreach( $rows as $rev => $quality ) { |
| 1087 | + foreach( $rows as $rev => $quality ) |
1067 | 1088 | $this->pageFlaggedRevs[$rev] = $quality; |
1068 | | - } |
| 1089 | + |
| 1090 | + return true; |
1069 | 1091 | } |
1070 | 1092 | |
1071 | 1093 | function addToHistLine( &$row, &$s ) { |
— | — | @@ -1077,6 +1099,8 @@ |
1078 | 1100 | $this->skin->makeLinkObj( $special, wfMsgHtml($msg), 'oldid='.$row->rev_id ) . |
1079 | 1101 | '</strong></small></tt>'; |
1080 | 1102 | } |
| 1103 | + |
| 1104 | + return true; |
1081 | 1105 | } |
1082 | 1106 | |
1083 | 1107 | function addQuickReview( $id=NULL, $out ) { |