Disable debug comments if debug comments are disabled
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2003 04:54:22 +0000 (04:54 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2003 04:54:22 +0000 (04:54 +0000)
includes/GlobalFunctions.php

index 19efb75..b6571ff 100644 (file)
@@ -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 ) {