From 75393882f7497e1e5066cb256314a00e75ca33fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 10 Dec 2010 14:44:01 +0000 Subject: [PATCH] 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 --- includes/User.php | 4 ---- 1 file changed, 4 deletions(-) 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 -- 2.20.1