From 9dfa7d1895915d6c4f7cb72692337b322c04705c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 10 Jul 2003 04:54:22 +0000 Subject: [PATCH] Disable debug comments if debug comments are disabled --- includes/GlobalFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.20.1