]> git.mxchange.org Git - friendica.git/blobdiff - mod/like.php
Edited view/sv/cropbody.tpl via GitHub
[friendica.git] / mod / like.php
index f256cd9a1f62e9ddc12e2608df5e08baa0833e88..3a8ca4b7d3a0e82cf6bfdaa78de8018deb35753c 100644 (file)
@@ -101,9 +101,7 @@ function like_content(&$a) {
                        intval($r[0]['id'])
                );
 
-               $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
-               proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"like\" \"$post_id\" &",
-                       array(),$foo));
+               proc_run('php',"include/notifier.php","like","$post_id");
                return;
        }
 
@@ -149,7 +147,7 @@ EOT;
        $arr['author-name'] = $contact['name'];
        $arr['author-link'] = $contact['url'];
        $arr['author-avatar'] = $contact['thumb'];
-       $arr['body'] = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]' . ' ' .  t('likes') . ' ' 
+       $arr['body'] = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]' . ' ' . $bodyverb . ' ' 
                . '[url=' . $item['author-link'] . ']' . $item['author-name'] . t('\'s') . '[/url]' . ' '
                . '[url=' . $a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . ']' . $post_type . '[/url]' ;
 
@@ -173,11 +171,7 @@ EOT;
                );
        }                       
 
-
-       $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
-
-       proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"like\" \"$post_id\" &",
-               array(),$foo));
+       proc_run('php',"include/notifier.php","like","$post_id");
 
        return; // NOTREACHED
 }
\ No newline at end of file