Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -1626,12 +1626,7 @@ |
1627 | 1627 | $this->load(); |
1628 | 1628 | # Get the stable version from the master |
1629 | 1629 | $frev = $this->article->getStableRev( FR_MASTER ); |
1630 | | - if ( !$frev ) { |
1631 | | - return true; |
1632 | | - } |
1633 | | - # Get latest revision Id (lag safe) |
1634 | | - $latest = $this->article->getTitle()->getLatestRevID( Title::GAID_FOR_UPDATE ); |
1635 | | - if ( $latest == $frev->getRevId() ) { |
| 1630 | + if ( !$frev || !$this->article->revsArePending() ) { |
1636 | 1631 | return true; // only for pages with pending edits |
1637 | 1632 | } |
1638 | 1633 | // If the edit was not autoreviewed, and the user can actually make a |
— | — | @@ -1652,7 +1647,7 @@ |
1653 | 1648 | // Pass a section parameter in the URL as needed to add a link to |
1654 | 1649 | // the "your changes are pending" box on the top of the page... |
1655 | 1650 | $section = str_replace( |
1656 | | - array( ':' , '.' ), array( '%3A', '%' ), // hack: reverse special encoding |
| 1651 | + array( ':' , '.' ), array( '%3A', '%' ), // hack: reverse encoding |
1657 | 1652 | substr( $sectionAnchor, 1 ) // remove the '#' |
1658 | 1653 | ); |
1659 | 1654 | $extraQuery .= '&fromsection=' . $section; |