From 2530bdc02eaf7d9129e7811d3991f3a266268911 Mon Sep 17 00:00:00 2001
From: Victor Vasiliev
Date: Sun, 28 Sep 2008 16:28:35 +0000
Subject: [PATCH] Some code cleanup per Nikerabbit
---
includes/specials/SpecialListUserRestrictions.php | 5 ++---
includes/specials/SpecialRemoveRestrictions.php | 4 +---
includes/specials/SpecialRestrictUser.php | 8 ++++----
3 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/includes/specials/SpecialListUserRestrictions.php b/includes/specials/SpecialListUserRestrictions.php
index 3c986db9eb..908bdc1a9e 100644
--- a/includes/specials/SpecialListUserRestrictions.php
+++ b/includes/specials/SpecialListUserRestrictions.php
@@ -25,8 +25,7 @@ class SpecialListUserRestrictionsForm {
public function getHTML() {
global $wgRequest, $wgScript, $wgTitle;
$s = '';
- $legend = wfMsgHtml( 'listuserrestrictions-legend' );
- $s .= "
";
return $s;
}
diff --git a/includes/specials/SpecialRemoveRestrictions.php b/includes/specials/SpecialRemoveRestrictions.php
index 2c157aec87..ded6cbe3d7 100644
--- a/includes/specials/SpecialRemoveRestrictions.php
+++ b/includes/specials/SpecialRemoveRestrictions.php
@@ -17,8 +17,6 @@ function wfSpecialRemoveRestrictions() {
return;
}
- $legend = wfMsgHtml( 'removerestrictions-legend' );
-
$form = array();
$form['removerestrictions-user'] = $sk->userLink( $r->getSubjectId(), $r->getSubjectText() ) .
$sk->userToolLinks( $r->getSubjectId(), $r->getSubjectText() );
@@ -34,7 +32,7 @@ function wfSpecialRemoveRestrictions() {
$result = wfSpecialRemoveRestrictionsProcess( $r );
$wgOut->addWikiMsg( 'removerestrictions-intro' );
- $wgOut->addHTML( "