r78188 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78187‎ | r78188 | r78189 >
Date:14:44, 10 December 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Reduce debug log spamming, which I assume is related to this line:
1340: function isBlocked( $bFromSlave = true ) { // hacked from false due to horrible probs on site
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -1074,7 +1074,6 @@
10751075 global $wgProxyWhitelist, $wgUser;
10761076
10771077 if ( -1 != $this->mBlockedby ) {
1078 - wfDebug( "User::getBlockedStatus: already loaded.\n" );
10791078 return;
10801079 }
10811080
@@ -1338,7 +1337,6 @@
13391338 * @return \bool True if blocked, false otherwise
13401339 */
13411340 function isBlocked( $bFromSlave = true ) { // hacked from false due to horrible probs on site
1342 - wfDebug( "User::isBlocked: enter\n" );
13431341 $this->getBlockedStatus( $bFromSlave );
13441342 return $this->mBlockedby !== 0;
13451343 }
@@ -1353,9 +1351,7 @@
13541352 function isBlockedFrom( $title, $bFromSlave = false ) {
13551353 global $wgBlockAllowsUTEdit;
13561354 wfProfileIn( __METHOD__ );
1357 - wfDebug( __METHOD__ . ": enter\n" );
13581355
1359 - wfDebug( __METHOD__ . ": asking isBlocked()\n" );
13601356 $blocked = $this->isBlocked( $bFromSlave );
13611357 $allowUsertalk = ( $wgBlockAllowsUTEdit ? $this->mAllowUsertalk : false );
13621358 # If a user's name is suppressed, they cannot make edits anywhere

Status & tagging log