From: Fabio Comuni Date: Mon, 2 Jan 2012 19:11:06 +0000 (+0100) Subject: text: "turn off" logger() if module is "install" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1fbffc76b18e94ecda86452fe16609295976c619;p=friendica.git text: "turn off" logger() if module is "install" --- diff --git a/include/text.php b/include/text.php index d6b3ceeab4..f32aaad07e 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');