From: umherirrender Date: Wed, 9 Oct 2013 18:47:45 +0000 (+0200) Subject: Set relevant User on Special:Unblock X-Git-Tag: 1.31.0-rc.0~18378^2 X-Git-Url: http://git.cyclocoop.org/%27-%20%20.%20url_absolue%28find_in_path%28%27spip_style.css%27%29%29%20%20%20.%20url_absolue%28find_in_path%28%27prive/spip_style.css%27%29%29%20.%20%27?a=commitdiff_plain;h=657056d712a227277833e4793bb21eeaf60b429e;p=lhc%2Fweb%2Fwiklou.git 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 --- 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();