From: Ævar Arnfjörð Bjarmason Date: Mon, 24 Oct 2005 00:31:02 +0000 (+0000) Subject: * Place a block user link in the sidebar on user pages for administrators X-Git-Tag: 1.6.0~1340 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=e40a9daf989918d7513f30937de784cba70e6de4;p=lhc%2Fweb%2Fwiklou.git * Place a block user link in the sidebar on user pages for administrators --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 812d94e501..3074d3a705 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -852,6 +852,10 @@ class SkinTemplate extends Skin { $nav_urls['contributions'] = array( 'href' => $this->makeSpecialUrl('Contributions/' . $this->mTitle->getText() ) ); + if ( $wgUser->isAllowed( 'protect' ) ) + $nav_urls['blockip'] = array( + 'href' => $this->makeSpecialUrl( 'Blockip/' . $this->mTitle->getText() ) + ); } else { $nav_urls['contributions'] = false; } diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 3eab60c611..a1460f7e64 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -177,7 +177,7 @@ class MonoBookTemplate extends QuickTemplate { ?>  - + data['nav_urls'][$special]) {?>
  • msg($special) ?>