From 657056d712a227277833e4793bb21eeaf60b429e Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 9 Oct 2013 20:47:45 +0200 Subject: [PATCH] Set relevant User on Special:Unblock Special:Block sets the relevant user to get links in the sidebar, do this also on unblock Change-Id: I3715ce63aae5ff7eb4aca9ef479020747fdc8ce8 --- includes/specials/SpecialUnblock.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/specials/SpecialUnblock.php b/includes/specials/SpecialUnblock.php index ca93b6d1fa..fbc8e91636 100644 --- a/includes/specials/SpecialUnblock.php +++ b/includes/specials/SpecialUnblock.php @@ -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(); -- 2.20.1