Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1814,7 +1814,7 @@ |
1815 | 1815 | return true; // nothing to do |
1816 | 1816 | } |
1817 | 1817 | $view = FlaggedArticleView::singleton(); |
1818 | | - $view->addCustomContentHtml( $out ); |
| 1818 | + $view->addCustomContentHtml( $out, $diffEngine->mNewid ); |
1819 | 1819 | return false; |
1820 | 1820 | } |
1821 | 1821 | |
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -1820,12 +1820,12 @@ |
1821 | 1821 | * to the specific revision. This will be replaced with article content |
1822 | 1822 | * using javascript and an api call. |
1823 | 1823 | */ |
1824 | | - public function addCustomContentHtml( OutputPage $out ) { |
| 1824 | + public function addCustomContentHtml( OutputPage $out, $newRevId ) { |
1825 | 1825 | $this->load(); |
1826 | | - if ( $out->getRevisionId() ) { |
| 1826 | + if ( $newRevId ) { |
1827 | 1827 | $out->addHTML( "<div id='mw-fr-revisioncontents'><span class='plainlinks'>" ); |
1828 | 1828 | $out->addWikiMsg( 'revcontents-getcontents', |
1829 | | - $this->article->getTitle()->getPrefixedDBKey(), $out->getRevisionId() ); |
| 1829 | + $this->article->getTitle()->getPrefixedDBKey(), $newRevId ); |
1830 | 1830 | $out->addHTML( "</span></div>" ); |
1831 | 1831 | } |
1832 | 1832 | } |