r22498 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22497‎ | r22498 | r22499 >
Date:04:27, 28 May 2007
Author:aaron
Status:old
Tags:
Comment:
*opps, don't add toggle to current rev tag
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -709,6 +709,8 @@
710710 if( !$this->pageOverride() ) {
711711 $revs_since = parent::getRevCountSince( $pageid, $tfrev->fr_rev_id );
712712 $tag .= wfMsgExt('revreview-newest', array('parse'), $tfrev->fr_rev_id, $time, $revs_since);
 713+ // Construct some tagging
 714+ $tag .= parent::addTagRatings( $flags );
713715 # Viewing the page normally: override the page
714716 } else {
715717 global $wgUser;
@@ -725,6 +727,9 @@
726728 $tag = wfMsgExt('revreview-quality', array('parseinline'), $vis_id, $article->getLatest(), $revs_since, $time);
727729 else
728730 $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>';
729734 # Try the stable page cache
730735 $parserOutput = parent::getPageCache( $article );
731736 # If no cache is available, get the text and parse it
@@ -746,9 +751,6 @@
747752 $outputDone = true;
748753 $pcache = false;
749754 }
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>';
753755 // Some checks for which tag CSS to use
754756 if( $pristine )
755757 $tag = '<div id="mwrevisiontag" class="flaggedrevs_tag3 plainlinks">'.$tag.'</div>';