Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -890,6 +890,9 @@ |
891 | 891 | |
892 | 892 | if( $this->skipAutoReview || !$wgFlaggedRevsAutoReviewNew || !$user->isAllowed('review') ) |
893 | 893 | return true; |
| 894 | + # Must be in reviewable namespace |
| 895 | + if( !FlaggedRevs::isPageReviewable( $article->getTitle() ) ) |
| 896 | + return true; |
894 | 897 | # Revision will be null for null edits |
895 | 898 | if( !$rev ) { |
896 | 899 | $this->skipReviewDiff = true; // Don't jump to diff... |
— | — | @@ -917,6 +920,9 @@ |
918 | 921 | |
919 | 922 | if( $this->skipAutoReview || !$wgFlaggedRevsAutoReview || !$user->isAllowed('review') ) |
920 | 923 | return true; |
| 924 | + # Must be in reviewable namespace |
| 925 | + if( !FlaggedRevs::isPageReviewable( $article->getTitle() ) ) |
| 926 | + return true; |
921 | 927 | # Revision will be null for null edits |
922 | 928 | if( !$rev ) { |
923 | 929 | $this->skipReviewDiff = true; // Don't jump to diff... |
— | — | @@ -955,6 +961,9 @@ |
956 | 962 | |
957 | 963 | if( $this->skipAutoReview || !$wgFlaggedRevsAutoReview || !$user->isAllowed('review') ) |
958 | 964 | return true; |
| 965 | + # Must be in reviewable namespace |
| 966 | + if( !FlaggedRevs::isPageReviewable( $article->getTitle() ) ) |
| 967 | + return true; |
959 | 968 | # Was this revision flagged? |
960 | 969 | $frev = FlaggedRevs::getFlaggedRev( $article->getTitle(), $rev->getID() ); |
961 | 970 | if( is_null($frev) ) |