From: umherirrender Date: Sat, 19 Mar 2016 11:24:04 +0000 (+0100) Subject: Call Skin::setRelevantUser on Special:EmailUser X-Git-Tag: 1.31.0-rc.0~7556^2 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=46bf89cfb96ba0e6669879a9a646c5cecae18ee7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 );