From: Niklas Laxström Date: Fri, 10 Dec 2010 14:44:01 +0000 (+0000) Subject: Reduce debug log spamming, which I assume is related to this line: X-Git-Tag: 1.31.0-rc.0~33392 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=75393882f7497e1e5066cb256314a00e75ca33fc;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/User.php b/includes/User.php index 5d4444d62b..2f8e53c065 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1074,7 +1074,6 @@ class User { global $wgProxyWhitelist, $wgUser; if ( -1 != $this->mBlockedby ) { - wfDebug( "User::getBlockedStatus: already loaded.\n" ); return; } @@ -1338,7 +1337,6 @@ class User { * @return \bool True if blocked, false otherwise */ function isBlocked( $bFromSlave = true ) { // hacked from false due to horrible probs on site - wfDebug( "User::isBlocked: enter\n" ); $this->getBlockedStatus( $bFromSlave ); return $this->mBlockedby !== 0; } @@ -1353,9 +1351,7 @@ class User { function isBlockedFrom( $title, $bFromSlave = false ) { global $wgBlockAllowsUTEdit; wfProfileIn( __METHOD__ ); - wfDebug( __METHOD__ . ": enter\n" ); - wfDebug( __METHOD__ . ": asking isBlocked()\n" ); $blocked = $this->isBlocked( $bFromSlave ); $allowUsertalk = ( $wgBlockAllowsUTEdit ? $this->mAllowUsertalk : false ); # If a user's name is suppressed, they cannot make edits anywhere