Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -782,31 +782,8 @@ |
783 | 783 | $time = $wgLang->timeanddate( wfTimestamp(TS_MW, $tfrev->fr_timestamp), true ); |
784 | 784 | $flags = $this->getFlagsForRevision( $tfrev->fr_rev_id ); |
785 | 785 | $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 | | - } |
810 | 786 | // Construct some tagging |
| 787 | + $tag = wfMsgExt('revreview-newest', array('parse'), $tfrev->fr_rev_id, $time, $revs_since ); |
811 | 788 | $tag .= parent::addTagRatings( $flags ); |
812 | 789 | $wgOut->addHTML( '<div class="flaggedrevs_tag1 plainlinks">' . $tag . '</div><br/>' ); |
813 | 790 | } |