Last modified: 2012-07-02 17:57:31 UTC
EditPage::userNotLoggedInPage is a very helpful thing for me. I need to make sure a user is logged in, conditionally, and this function lets me do it. However, the reason they're presented with an error _isn't_ because they need to be logged in to edit--they could plain old edit if they weren't logged in, so long as the site allows it. But they can't use _my extension_ without logging in. So, I'd like to have the chance to pass in a custom error message, or message key (I have them all in .i18n.php anyway), so the user can see the proper message. Failing that, a point towards a different method that allows this, and has the same functionality as userNotLoggedInPage(). Thanks!
That method is deprecated since 1.19, its functionality is now in OutputPage::showPermissionsErrorPage(). Since 1.20 you also have an UserNotLoggedIn exception that you can use with our own message.
Thanks, Alexandre! I'm now properly using the exception. If only I'd had your searching-fu available at the time :)