From 46bf89cfb96ba0e6669879a9a646c5cecae18ee7 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 19 Mar 2016 12:24:04 +0100 Subject: [PATCH] Call Skin::setRelevantUser on Special:EmailUser Adding the relevant user to the skin will add user releated links to the navigation bar. User related links are: contributions, logs and blocks Change-Id: I37126a228717addc9879fd69fcbe89057ca94cb7 --- includes/specials/SpecialEmailuser.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/specials/SpecialEmailuser.php b/includes/specials/SpecialEmailuser.php index 3528be0dc0..fb1943fb1e 100644 --- a/includes/specials/SpecialEmailuser.php +++ b/includes/specials/SpecialEmailuser.php @@ -154,6 +154,10 @@ class SpecialEmailUser extends UnlistedSpecialPage { $this->mTargetObj = $ret; + // Set the 'relevant user' in the skin, so it displays links like Contributions, + // User logs, UserRights, etc. + $this->getSkin()->setRelevantUser( $this->mTargetObj ); + $context = new DerivativeContext( $this->getContext() ); $context->setTitle( $this->getPageTitle() ); // Remove subpage $form = new HTMLForm( $this->getFormFields(), $context ); -- 2.20.1