Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -482,7 +482,7 @@ |
483 | 483 | // (a) the user can delete revisions, or |
484 | 484 | // (b) the user can view deleted revision *and* this one is deleted |
485 | 485 | if ( $canHide || ( $rev->getVisibility() && $wgUser->isAllowed( 'deletedhistory' ) ) ) { |
486 | | - $sk = $this->getSkin(); |
| 486 | + $sk = $wgUser->getSkin(); |
487 | 487 | if ( !$rev->userCan( Revision::DELETED_RESTRICTED ) ) { |
488 | 488 | $link = $sk->revDeleteLinkDisabled( $canHide ); // revision was hidden from sysops |
489 | 489 | } else { |
— | — | @@ -550,7 +550,7 @@ |
551 | 551 | } |
552 | 552 | # Add redundant patrol link on bottom... |
553 | 553 | if ( $this->mRcidMarkPatrolled && $this->mTitle->quickUserCan( 'patrol' ) ) { |
554 | | - $sk = $this->getSkin(); |
| 554 | + $sk = $wgUser->getSkin(); |
555 | 555 | $token = $wgUser->editToken( $this->mRcidMarkPatrolled ); |
556 | 556 | $wgOut->preventClickjacking(); |
557 | 557 | $wgOut->addHTML( |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -879,7 +879,7 @@ |
880 | 880 | */ |
881 | 881 | public function __construct( $imagePage ) { |
882 | 882 | global $wgUser, $wgShowArchiveThumbnails; |
883 | | - $this->skin = $this->getSkin(); |
| 883 | + $this->skin = $wgUser->getSkin(); |
884 | 884 | $this->current = $imagePage->getFile(); |
885 | 885 | $this->img = $imagePage->getDisplayedFile(); |
886 | 886 | $this->title = $imagePage->getTitle(); |