]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_confirm.php
cleanup untracked files
[friendica.git] / mod / dfrn_confirm.php
index 24e8bf106a9a938dcf6e0ddf3352b2839fcbf38f..1bf1ba9549ebe2c86d5080e6a7de03a7d1867898 100644 (file)
@@ -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");
 
                        }
 
@@ -494,7 +491,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                        dbesc($node));
 
                if(! count($r)) {
-                       $message = t('No user record found for ') . '\'' . $node . '\'';
+                       $message = sprintf(t('No user record found for \'%s\' '), $node);
                        xml_status(3,$message); // failure
                        // NOTREACHED
                }
@@ -648,7 +645,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                                '$uid' => $newuid )
                        );
        
-                       $res = mail($r[0]['email'], t("Connection accepted at ") . $a->config['sitename'],
+                       $res = mail($r[0]['email'], sprintf( t("Connection accepted at %s") , $a->config['sitename']),
                                $email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] );
                        if(!$res) {
                                // pointless throwing an error here and confusing the person at the other end of the wire.