]> git.mxchange.org Git - friendica.git/blobdiff - mod/like.php
preliminary network abstraction, configurable debugging.
[friendica.git] / mod / like.php
index d52b3a324300e5056770abb55b329bd9e5d9a357..10a466b507be829697dd480c2994fb16bbd5e3e2 100644 (file)
@@ -96,8 +96,9 @@ function like_content(&$a) {
                );
 
                $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
+               $proc_debug = get_config('system','proc_debug');
 
-               proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"like\" \"$post_id\" > notify.out &",
+               proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"like\" \"$post_id\" $proc_debug &",
                        array(),$foo));
                return;
        }
@@ -163,8 +164,9 @@ EOT;
 
 
        $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
+       $proc_debug = get_config('system','proc_debug');
 
-       proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"like\" \"$post_id\" > notify.out &",
+       proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"like\" \"$post_id\" $proc_debug &",
                array(),$foo));
 
        return; // NOTREACHED