Merge "Set relevant User on Special:Unblock"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 27 Oct 2013 20:20:42 +0000 (20:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 27 Oct 2013 20:20:42 +0000 (20:20 +0000)
includes/specials/SpecialUnblock.php

index ca93b6d..fbc8e91 100644 (file)
@@ -42,6 +42,11 @@ class SpecialUnblock extends SpecialPage {
 
                list( $this->target, $this->type ) = SpecialBlock::getTargetAndType( $par, $this->getRequest() );
                $this->block = Block::newFromTarget( $this->target );
+               if ( $this->target instanceof User ) {
+                       # Set the 'relevant user' in the skin, so it displays links like Contributions,
+                       # User logs, UserRights, etc.
+                       $this->getSkin()->setRelevantUser( $this->target );
+               }
 
                $this->setHeaders();
                $this->outputHeader();