diff options
author | Friendika <info@friendika.com> | 2011-02-23 15:16:12 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-23 15:16:12 -0800 |
commit | 755c2245e8184ceee2ba3382e4f60143da31e6df (patch) | |
tree | 0098c6c22248135533a8fec4768090e9463b7b68 /mod/dfrn_confirm.php | |
parent | fdc469ae4ce385e21c396b76628e0d427e173e92 (diff) | |
download | volse-hubzilla-755c2245e8184ceee2ba3382e4f60143da31e6df.tar.gz volse-hubzilla-755c2245e8184ceee2ba3382e4f60143da31e6df.tar.bz2 volse-hubzilla-755c2245e8184ceee2ba3382e4f60143da31e6df.zip |
move php path setting inside proc_run
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r-- | mod/dfrn_confirm.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 24e8bf106..1b42c13b8 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -435,11 +435,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) { $arr['last-child'] = 1; $i = item_store($arr); - - $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); - - //proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"activity\" \"$i\" &", array(),$foo)); - proc_run($php_path,"include/notifier.php","activity","$i"); + if($i) + proc_run('php',"include/notifier.php","activity","$i"); } |