Index: branches/chad-pre-wmf-merge/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | 'group-autoreview-member' => 'autochecked users', |
44 | 44 | 'grouppage-autoreview' => '{{ns:project}}:Autochecked users', |
45 | 45 | 'revcontents-error' => 'Unable to get content.', |
46 | | - 'revcontents-getcontents' => '<a href="$1" >View this revision</a>', |
| 46 | + 'revcontents-getcontents' => '[{{fullurl:$1|oldid=$2}} View this revision]', |
47 | 47 | 'revcontents-waiting' => 'Waiting for content', |
48 | 48 | 'revreview-hist-draft' => 'unchecked revision', |
49 | 49 | 'revreview-hist-pending' => 'pending revision', |
Index: branches/chad-pre-wmf-merge/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -1820,12 +1820,11 @@ |
1821 | 1821 | * This will be replaced with artice content using javascript and an api call. |
1822 | 1822 | */ |
1823 | 1823 | public function addCustomHtml( OutputPage $out ) { |
1824 | | - global $wgTitle, $wgScript, $wgRequest; |
| 1824 | + global $wgTitle; |
1825 | 1825 | $this->load(); |
1826 | | - if ( $wgRequest->getVal( 'oldid' ) ) { |
1827 | | - $oldId = $wgRequest->getVal( 'oldid' ); |
1828 | | - $oldRevisionUrl = $wgScript . '?title=' . $wgTitle . '&oldid=' . $oldId; |
1829 | | - $out->addHTML( "<div id='mw-fr-revisioncontents'>" . wfMsg( 'revcontents-getcontents', $oldRevisionUrl ) . "</div>" ); |
| 1826 | + if ( $out->getRevisionId() ) { |
| 1827 | + $oldRevisionLink = wfMsgExt( 'revcontents-getcontents', array( 'parseinline' ), $wgTitle, $out->getRevisionId() ); |
| 1828 | + $out->addHTML( "<div id='mw-fr-revisioncontents' class='plainlinks'>" . $oldRevisionLink . "</div>" ); |
1830 | 1829 | } |
1831 | 1830 | |
1832 | 1831 | } |