Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -1818,12 +1818,12 @@ |
1819 | 1819 | * This will be replaced with artice content using javascript and an api call. |
1820 | 1820 | */ |
1821 | 1821 | public function addCustomHtml( OutputPage $out ) { |
1822 | | - global $wgTitle; |
1823 | 1822 | $this->load(); |
1824 | 1823 | if ( $out->getRevisionId() ) { |
1825 | | - $oldRevisionLink = wfMsgExt( 'revcontents-getcontents', array( 'parseinline' ), $wgTitle, $out->getRevisionId() ); |
1826 | | - $out->addHTML( "<div id='mw-fr-revisioncontents' class='plainlinks'>" . $oldRevisionLink . "</div>" ); |
| 1824 | + $out->addHTML( "<div id='mw-fr-revisioncontents' class='plainlinks'>" ); |
| 1825 | + $out->addWikiMsg( 'revcontents-getcontents', |
| 1826 | + $this->article->getTitle()->getPrefixedDBKey(), $out->getRevisionId() ); |
| 1827 | + $out->addHTML( "</div>" ); |
1827 | 1828 | } |
1828 | | - |
1829 | 1829 | } |
1830 | 1830 | } |