]> git.mxchange.org Git - friendica.git/blobdiff - mod/message.php
Merge branch 'master' of git://github.com/friendika/friendika
[friendica.git] / mod / message.php
index ef3be2c5e9cd05a7e5e7a89cff96c1c480c16bfc..4821a45d263bc0aa5a1bb12d05ce7e84e2a3c44c 100644 (file)
@@ -96,16 +96,9 @@ function message_post(&$a) {
                        }
                }
        }
-
-
-
-
-
-       $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
        
        if($post_id) {
-               //proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"mail\" \"$post_id\" &", array(),$foo));
-               proc_run($php_path,"include/notifier.php","mail","$post_id");
+               proc_run('php',"include/notifier.php","mail","$post_id");
                notice( t('Message sent.') . EOL );
        }
        else {
@@ -172,9 +165,12 @@ function message_content(&$a) {
        if(($a->argc > 1) && ($a->argv[1] === 'new')) {
                
                $tpl = load_view_file('view/msg-header.tpl');
-       
-               $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl()));
 
+               $a->page['htmlhead'] .= replace_macros($tpl, array(
+                       '$baseurl' => $a->get_baseurl(),
+                       '$nickname' => $a->user['nickname']
+               ));
+       
                $select = contact_select('messageto','message-to-select', false, 4, true);
                $tpl = load_view_file('view/prv_message.tpl');
                $o .= replace_macros($tpl,array(