Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php |
— | — | @@ -24,8 +24,10 @@ |
25 | 25 | var $unapprovedTags = 0; |
26 | 26 | |
27 | 27 | public function __construct() { |
| 28 | + global $wgUser; |
28 | 29 | parent::__construct( 'RevisionReview', 'review' ); |
29 | 30 | wfLoadExtensionMessages( 'FlaggedRevs' ); |
| 31 | + $this->skin = $wgUser->getSkin(); |
30 | 32 | } |
31 | 33 | |
32 | 34 | public function execute( $par ) { |
— | — | @@ -285,7 +287,6 @@ |
286 | 288 | |
287 | 289 | $wgOut->addWikiText( wfMsg( 'revreview-selected', $this->page->getPrefixedText() ) ); |
288 | 290 | |
289 | | - $this->skin = $wgUser->getSkin(); |
290 | 291 | $rev = Revision::newFromTitle( $this->page, $this->oldid ); |
291 | 292 | # Check if rev exists |
292 | 293 | # Do not mess with deleted revisions |
— | — | @@ -438,10 +439,11 @@ |
439 | 440 | $form .= wfMsgExt( $msg, array('parse'), $this->page->getPrefixedUrl(), $this->oldid ); |
440 | 441 | $form .= "</div>"; |
441 | 442 | # Handy links to special pages |
442 | | - $sk = $wgUser->getSkin(); |
443 | 443 | if( $showlinks && $wgUser->isAllowed( 'unreviewedpages' ) ) { |
444 | | - $form .= '<p>'.wfMsg( 'returnto', $sk->makeLinkObj( SpecialPage::getTitleFor( 'UnreviewedPages' ) ) ).'</p>'; |
445 | | - $form .= '<p>'.wfMsg( 'returnto', $sk->makeLinkObj( SpecialPage::getTitleFor( 'OldReviewedPages' ) ) ).'</p>'; |
| 444 | + $form .= '<p>' . wfMsg( 'returnto', |
| 445 | + $this->skin->makeLinkObj( SpecialPage::getTitleFor( 'UnreviewedPages' ) ) ).'</p>'; |
| 446 | + $form .= '<p>' . wfMsg( 'returnto', |
| 447 | + $this->skin->makeLinkObj( SpecialPage::getTitleFor( 'OldReviewedPages' ) ) ).'</p>'; |
446 | 448 | } |
447 | 449 | return $form; |
448 | 450 | } |
— | — | @@ -455,7 +457,7 @@ |
456 | 458 | } |
457 | 459 | $form .= "</ul>"; |
458 | 460 | if( $showlinks ) { |
459 | | - $form .= wfMsg( 'returnto', $sk->makeLinkObj( $this->page ) ); |
| 461 | + $form .= wfMsg( 'returnto', $this->skin->makeLinkObj( $this->page ) ); |
460 | 462 | } |
461 | 463 | return $form; |
462 | 464 | } |