Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -403,7 +403,7 @@ |
404 | 404 | protected function showUnreviewedPage( $tag, $prot ) { |
405 | 405 | global $wgOut, $wgContLang; |
406 | 406 | if ( $wgOut->isPrintable() ) { |
407 | | - return; |
| 407 | + return; // all this function does is add notices; don't show them |
408 | 408 | } |
409 | 409 | $icon = FlaggedRevsXML::draftStatusIcon(); |
410 | 410 | // Simple icon-based UI |
— | — | @@ -592,9 +592,9 @@ |
593 | 593 | FlaggedRevsXML::addTagRatings( $flags ) . '</div>'; |
594 | 594 | } |
595 | 595 | } |
| 596 | + # Load the review notes which will be shown by onSkinAfterContent |
| 597 | + $this->setReviewNotes( $frev ); |
596 | 598 | } |
597 | | - # Load the review notes which will be shown by onSkinAfterContent |
598 | | - $this->setReviewNotes( $frev ); |
599 | 599 | |
600 | 600 | # Check if this is a redirect... |
601 | 601 | $text = $frev->getRevText(); |
— | — | @@ -675,7 +675,9 @@ |
676 | 676 | } |
677 | 677 | |
678 | 678 | # Load the review notes which will be shown by onSkinAfterContent |
679 | | - $this->setReviewNotes( $srev ); |
| 679 | + if ( !$wgOut->isPrintable() ) { |
| 680 | + $this->setReviewNotes( $srev ); |
| 681 | + } |
680 | 682 | |
681 | 683 | # Get parsed stable version and output HTML |
682 | 684 | $parserOut = FlaggedRevs::getPageCache( $this->article, $wgUser ); |