r77617 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77616‎ | r77617 | r77618 >
Date:23:59, 2 December 2010
Author:werdna
Status:ok
Tags:
Comment:
Fix r75759: replace call to userNotPrivilegedMessage() with a call to OutputPage::permissionRequired().
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -290,7 +290,7 @@
291291
292292 # Check permissions
293293 if ( !$wgUser->isAllowed( 'createaccount' ) ) {
294 - $this->userNotPrivilegedMessage( 'createaccount' );
 294+ $wgOut->permissionRequired( 'createaccount' );
295295 return false;
296296 } elseif ( $wgUser->isBlockedFromCreateAccount() ) {
297297 $this->userBlockedMessage();

Follow-up revisions

RevisionCommit summaryAuthorDate
r77618Kill off userNotPrivilegedMessage, not used after r77617reedy00:06, 3 December 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75759userNotPrivilegedMessage being called with no parameter. Guessing it needs to...reedy23:14, 31 October 2010

Status & tagging log