From ff194ef5b4c73b3772c45895ebafc75ab6e1336a Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Fri, 1 Apr 2011 23:13:15 +0000 Subject: [PATCH] Follow-up r85025: fix the you're-trying-to-block-yourself-you-twit warning, and make it an actual checkbox confirmation. Also use said confirmation for reblocks, and HideUser (bug 18678). Mark a static function from HTMLForm which is called from SpecialBlock as explicitly public. --- includes/HTMLForm.php | 2 +- includes/specials/SpecialBlock.php | 102 ++++++++++++++++++++++++----- languages/messages/MessagesEn.php | 9 ++- maintenance/language/messages.inc | 2 + 4 files changed, 91 insertions(+), 24 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 58c8bbf97d..d8d83e8f21 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -522,7 +522,7 @@ class HTMLForm { * @param $errors Array of message keys/values * @return String HTML, a