Include action in permission error messages
authorJackmcbarn <jackmcbarn@gmail.com>
Thu, 8 May 2014 19:26:31 +0000 (15:26 -0400)
committerJackmcbarn <jackmcbarn@gmail.com>
Tue, 10 Jun 2014 03:35:51 +0000 (03:35 +0000)
commitf51a1c4659b17343846f2d54db03d758f11b76c9
treed694bbe58a11b370e8d49ec984f4cc56501dee93
parentecc71fc9e4bac94a879c0734d90ba0b94211d5d3
Include action in permission error messages

In permission error messages that can be displayed for multiple actions,
add a parameter indicating which action was attempted. This allows
fixing confusing messages such as "You can't edit this page" when a user
tries to move a page that they can edit but not move.

Bug: 40145
Change-Id: Ib4b75d8b1e0db96fe8a58f7343b0b2811fd19682
includes/Title.php
languages/i18n/qqq.json
tests/phpunit/includes/TitlePermissionTest.php