diff options
author | Fabio Comuni <fabio@krik.localdomain> | 2012-01-02 20:11:06 +0100 |
---|---|---|
committer | Fabio Comuni <fabio@krik.localdomain> | 2012-01-02 20:11:06 +0100 |
commit | 1fbffc76b18e94ecda86452fe16609295976c619 (patch) | |
tree | 320188eec677c10aca507d3b1b6c34ca477e04f3 /include/text.php | |
parent | 85fbdb00acf5ab1308f6d0da42d2a61e3f3ff074 (diff) | |
download | volse-hubzilla-1fbffc76b18e94ecda86452fe16609295976c619.tar.gz volse-hubzilla-1fbffc76b18e94ecda86452fe16609295976c619.tar.bz2 volse-hubzilla-1fbffc76b18e94ecda86452fe16609295976c619.zip |
text: "turn off" logger() if module is "install"
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index d6b3ceeab..f32aaad07 100644 --- a/include/text.php +++ b/include/text.php @@ -426,6 +426,10 @@ function attribute_contains($attr,$s) { if(! function_exists('logger')) { function logger($msg,$level = 0) { + // turn off logger in install mode + global $a; + if ($a->module == 'install') return; + $debugging = get_config('system','debugging'); $loglevel = intval(get_config('system','loglevel')); $logfile = get_config('system','logfile'); |