Refactor badaccess-groupX and friends to use User::getGroupsWithPermission().
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 5 Aug 2008 02:37:28 +0000 (02:37 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 5 Aug 2008 02:37:28 +0000 (02:37 +0000)
commit01e45b552330284e266aab7b729d698f703fab35
treeb73c94dc526a0eb0afb1a6322b4aa1c37ae92c9a
parent64b920ce4689c54279aae7217da7c1b066611eac
Refactor badaccess-groupX and friends to use User::getGroupsWithPermission().
* Should be a bit cleaner, and remove those ugly ugly switch() statements.
* Two messages are all that's needed here. Badaccess-group0, a generic "Permission denied" when no group is allowed access; and badaccess-groups which takes two parameters of $1 (groups required for access) and $2 (number of group matches, used for {{PLURAL:}}ing the message).
includes/OutputPage.php
includes/Title.php
languages/messages/MessagesEn.php