Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -709,6 +709,8 @@ |
710 | 710 | if( !$this->pageOverride() ) { |
711 | 711 | $revs_since = parent::getRevCountSince( $pageid, $tfrev->fr_rev_id ); |
712 | 712 | $tag .= wfMsgExt('revreview-newest', array('parse'), $tfrev->fr_rev_id, $time, $revs_since); |
| 713 | + // Construct some tagging |
| 714 | + $tag .= parent::addTagRatings( $flags ); |
713 | 715 | # Viewing the page normally: override the page |
714 | 716 | } else { |
715 | 717 | global $wgUser; |
— | — | @@ -725,6 +727,9 @@ |
726 | 728 | $tag = wfMsgExt('revreview-quality', array('parseinline'), $vis_id, $article->getLatest(), $revs_since, $time); |
727 | 729 | else |
728 | 730 | $tag = wfMsgExt('revreview-basic', array('parseinline'), $vis_id, $article->getLatest(), $revs_since, $time); |
| 731 | + // Construct some tagging |
| 732 | + $tag .= ' <a href="javascript:toggleRevRatings()">' . wfMsg('revreview-toggle') . '</a>'; |
| 733 | + $tag .= '<span id="mwrevisionratings" style="display:none">' . parent::addTagRatings( $flags ) . '</span>'; |
729 | 734 | # Try the stable page cache |
730 | 735 | $parserOutput = parent::getPageCache( $article ); |
731 | 736 | # If no cache is available, get the text and parse it |
— | — | @@ -746,9 +751,6 @@ |
747 | 752 | $outputDone = true; |
748 | 753 | $pcache = false; |
749 | 754 | } |
750 | | - // Construct some tagging |
751 | | - $tag .= ' <a href="javascript:toggleRevRatings()">' . wfMsg('revreview-toggle') . '</a>'; |
752 | | - $tag .= '<span id="mwrevisionratings" style="display:none">' . parent::addTagRatings( $flags ) . '</span>'; |
753 | 755 | // Some checks for which tag CSS to use |
754 | 756 | if( $pristine ) |
755 | 757 | $tag = '<div id="mwrevisiontag" class="flaggedrevs_tag3 plainlinks">'.$tag.'</div>'; |