]> git.mxchange.org Git - friendica.git/commitdiff
text: "turn off" logger() if module is "install"
authorFabio Comuni <fabio@krik.localdomain>
Mon, 2 Jan 2012 19:11:06 +0000 (20:11 +0100)
committerFabio Comuni <fabio@krik.localdomain>
Mon, 2 Jan 2012 19:11:06 +0000 (20:11 +0100)
include/text.php

index d6b3ceeab40600ac1c7f54b452c7856c694eeebb..f32aaad07e8c01e3c127421ca8e21c51e6a1ac49 100644 (file)
@@ -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');