From: Brion Vibber Date: Thu, 10 Jul 2003 04:54:22 +0000 (+0000) Subject: Disable debug comments if debug comments are disabled X-Git-Tag: 1.1.0~420 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=9dfa7d1895915d6c4f7cb72692337b322c04705c;p=lhc%2Fweb%2Fwiklou.git Disable debug comments if debug comments are disabled --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 19efb7566a..b6571ff9d8 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -130,9 +130,9 @@ function wfMungeToUtf8($string) { function wfDebug( $text, $logonly = false ) { - global $wgOut, $wgDebugLogFile; + global $wgOut, $wgDebugLogFile, $wgDebugComments; - if ( ! $logonly ) { + if ( $wgDebugComments && !$logonly ) { $wgOut->debug( $text ); } if ( "" != $wgDebugLogFile ) {