MediaWiki r4257 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r4256‎ | r4257 (on ViewVC)‎ | r4258 >
Date:01:28, 10 July 2004
Author:timstarling
Status:old
Tags:
Comment:
restrictions on Special:Movepage
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -722,7 +722,7 @@
723723 }
724724
725725 function isNewbie() {
726 - return $this->mId > User::getMaxID() * 0.99 && !$this->isSysop() || $this->getID() == 0;
 726+ return $this->mId > User::getMaxID() * 0.99 && !$this->isSysop() && !$this->isBot() || $this->getID() == 0;
727727 }
728728 }
729729
Index: trunk/phase3/includes/SpecialMovepage.php
@@ -3,9 +3,9 @@
44
55 function wfSpecialMovepage()
66 {
7 - global $wgUser, $wgOut, $wgRequest, $action;
 7+ global $wgUser, $wgOut, $wgRequest, $action, $wgOnlySysopMayMove;
88
9 - if ( 0 == $wgUser->getID() or $wgUser->isBlocked() ) {
 9+ if ( 0 == $wgUser->getID() or $wgUser->isBlocked() or ($wgOnlySysopMayMove and $wgUser->isNewbie())) {
1010 $wgOut->errorpage( "movenologin", "movenologintext" );
1111 return;
1212 }

Status & tagging log

  • 01:56, 13 October 2010 ^demon (Talk | contribs) changed the status of r4257 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox