Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -574,7 +574,8 @@ |
575 | 575 | public function isReviewable( $title ) { |
576 | 576 | global $wgFlaggedRevsNamespaces; |
577 | 577 | |
578 | | - return in_array($title->getNamespace(),$wgFlaggedRevsNamespaces); |
| 578 | + return ( in_array($title->getNamespace(),$wgFlaggedRevsNamespaces) |
| 579 | + && !$title->isTalkPage() ); |
579 | 580 | } |
580 | 581 | |
581 | 582 | /** |
Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php |
— | — | @@ -252,8 +252,11 @@ |
253 | 253 | } |
254 | 254 | |
255 | 255 | function addVisibilityLink( $out ) { |
256 | | - global $wgUser, $wgRequest, $action; |
| 256 | + global $wgUser, $wgRequest, $wgTitle, $action; |
257 | 257 | |
| 258 | + if( !$this->isReviewable( $wgTitle ) ) |
| 259 | + return true; |
| 260 | + |
258 | 261 | if( $action=='protect' || $action=='unprotect' ) { |
259 | 262 | # Check for an overridabe revision |
260 | 263 | $tfrev = $this->getStableRev(); |