Add a Status and a $reason parameter to TitleMove hook
authorDaimona Eaytoy <daimona.wiki@gmail.com>
Thu, 8 Nov 2018 15:02:43 +0000 (16:02 +0100)
committerDaimona Eaytoy <daimona.wiki@gmail.com>
Tue, 13 Nov 2018 08:51:02 +0000 (08:51 +0000)
commit495331ff0705dd93239ec6ab449921d84f33a6c9
tree72b2af3e4ffc3bf68c5840a3a73349aeafbafd5d
parentd7fba6c62decdcbd108cdd26b49a9075377e6368
Add a Status and a $reason parameter to TitleMove hook

So that using this hook it's possible to prevent the move, also
providing some more context.
Also, clean error message: instead of going with "you do not have
permission blah blah" for *every* kind of error, use it only when the
error is actually about permissions, and use a generic message
otherwise.

Bug: T208907
Change-Id: I4733724075b7514e9db59e7be772d9409aa9da87
docs/hooks.txt
includes/MovePage.php
includes/specials/SpecialMovepage.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/MovePageTest.php