allow methods to generate a "user does not have required permissions" error by throwi...
authorHappy-melon <happy-melon@users.mediawiki.org>
Tue, 12 Apr 2011 22:59:17 +0000 (22:59 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Tue, 12 Apr 2011 22:59:17 +0000 (22:59 +0000)
commit2e1e9bf0e685cb7b432d2e916e0e640ee167b18f
treead573b71b078acc98530efa668e1482e9ea0c1b2
parent109f7bcb9de9b9f82baa5a9a7454dc7448a05aec
allow methods to generate a "user does not have required permissions" error by throwing an exception rather than calling $wgOut->permissionRequired().  Currently somewhat circular as the exception goes back to OutputPage::showErrorPage(), but hopefully that global dependency can be reduced in future.
includes/Exception.php
includes/OutputPage.php