From f42d1c75316f76b00c3e1b4ae7f890048ae1b117 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 27 Oct 2005 20:34:10 +0200 Subject: option for disabling debug output darcs-hash:20051027183410-7ad00-5ca48cf2d4058016f5cf07887d9eaa7b07a4043f.gz --- inc/parserutils.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/parserutils.php') diff --git a/inc/parserutils.php b/inc/parserutils.php index ba8d8df36..7a263bf22 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -90,16 +90,16 @@ function p_cached_xhtml($file){ { //well then use the cache $parsed = io_readfile($cache); - $parsed .= "\n\n"; + if($conf['allowdebug']) $parsed .= "\n\n"; }else{ $parsed = p_render('xhtml', p_cached_instructions($file),$info); //try to use cached instructions if($info['cache']){ io_saveFile($cache,$parsed); //save cachefile - $parsed .= "\n\n"; + if($conf['allowdebug']) $parsed .= "\n\n"; }else{ @unlink($cache); //try to delete cachefile - $parsed .= "\n\n"; + if($conf['allowdebug']) $parsed .= "\n\n"; } } -- cgit v1.2.3