(bug 32434) API allows reblocking the user without reblock parameter.
authorSzymon Świerkosz <beau@adres.pl>
Sat, 14 Apr 2012 21:43:49 +0000 (23:43 +0200)
committerSzymon Świerkosz <beau@adres.pl>
Thu, 20 Dec 2012 16:02:40 +0000 (17:02 +0100)
commit44d988fb72215db57f437c33aaeb37a0937f9796
tree060ff0716e752340c9aed9e315b1cecb0de681f8
parent19d81b4e5d45211f6035b25618c0b74b1e5db424
(bug 32434) API allows reblocking the user without reblock parameter.

This change adds special case in processing of the block form.
An unused parameter 'AlreadyBlocked' was replaced by 'Reblock'.
Parameter 'PreviousTarget' was added so API user can block him/herself.

Change-Id: I29275eb4b5f425b7382ba8b7dec050209878f81b
includes/api/ApiBlock.php
includes/specials/SpecialBlock.php