r22436 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22435‎ | r22436 | r22437 >
Date:19:34, 25 May 2007
Author:aaron
Status:old
Tags:
Comment:
*Remove unused messages
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -782,31 +782,8 @@
783783 $time = $wgLang->timeanddate( wfTimestamp(TS_MW, $tfrev->fr_timestamp), true );
784784 $flags = $this->getFlagsForRevision( $tfrev->fr_rev_id );
785785 $revs_since = parent::getRevCountSince( $editform->mArticle->getID(), $tfrev->fr_rev_id );
786 - # Looking at some specific old rev
787 - if( $wgRequest->getVal('oldid') ) {
788 - if( $revid==$tfrev->fr_rev_id ) {
789 - $tag = wfMsgExt('revreview-isnewest', array('parse'),$time);
790 - } else {
791 - # Our compare link should have a reasonable time-ordered old->new combination
792 - $oldid = ($revid > $tfrev->fr_rev_id) ? $tfrev->fr_rev_id : $revid;
793 - $diff = ($revid > $tfrev->fr_rev_id) ? $revid : $tfrev->fr_rev_id;
794 - # Is this revision flagged?
795 - $flags2 = $this->getFlagsForRevision( $revid );
796 - $app = false;
797 - foreach( $flags2 as $f => $v ) {
798 - if( $v > 0 ) $app=true;
799 - }
800 - if( $app ) {
801 - $tag .= wfMsgExt('revreview-old', array('parse'));
802 - $tag .= parent::addTagRatings( $flags2 );
803 - }
804 - $tag .= wfMsgExt('revreview-newest', array('parse'), $tfrev->fr_rev_id, $time, $revs_since);
805 - }
806 - # Editing the page normally
807 - } else {
808 - $tag = wfMsgExt('revreview-newest', array('parse'), $tfrev->fr_rev_id, $time, $revs_since );
809 - }
810786 // Construct some tagging
 787+ $tag = wfMsgExt('revreview-newest', array('parse'), $tfrev->fr_rev_id, $time, $revs_since );
811788 $tag .= parent::addTagRatings( $flags );
812789 $wgOut->addHTML( '<div class="flaggedrevs_tag1 plainlinks">' . $tag . '</div><br/>' );
813790 }