Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -791,9 +791,11 @@ |
792 | 792 | } |
793 | 793 | |
794 | 794 | function addReviewForm( &$out ) { |
795 | | - global $wgArticle; |
| 795 | + global $wgArticle, $action; |
796 | 796 | |
797 | | - if ( !is_object($wgArticle) ) return; |
| 797 | + if( !is_object($wgArticle) || !$wgArticle->mTitle->isContentPage() || $action !='view' ) |
| 798 | + return; |
| 799 | + |
798 | 800 | $revId = ( $wgArticle->mRevision ) ? $wgArticle->mRevision->mId : $wgArticle->getLatest(); |
799 | 801 | // Show review links for the VISIBLE revision |
800 | 802 | // We cannot review deleted revisions |