summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2010-09-18 18:14:45 +0100
committerChristopher Smith <chris@jalakai.co.uk>2010-09-18 18:14:45 +0100
commit667644e8c3154b8230a4cb7d1533dc84db8c1c58 (patch)
treee60bf33ed628524269ec5c90348141c8e604a041
parentf4daa9a18d9c09a1bac0696d92e2bceef8a6800f (diff)
parent5bd930fff2b3cc98f360d3689dd4e00e0b5f92c4 (diff)
downloadrpg-667644e8c3154b8230a4cb7d1533dc84db8c1c58.tar.gz
rpg-667644e8c3154b8230a4cb7d1533dc84db8c1c58.tar.bz2
Merge branch 'master' of git@github.com:splitbrain/dokuwiki
-rw-r--r--inc/infoutils.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index ac6a0a84c..d3c6f2918 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -304,6 +304,9 @@ function dbg($msg,$hidden=false){
*/
function dbglog($msg,$header=''){
global $conf;
+ // The debug log isn't automatically cleaned thus only write it when
+ // debugging has been enabled by the user.
+ if($conf['allowdebug'] !== 1) return;
if(is_object($msg) || is_array($msg)){
$msg = print_r($msg,true);
}