]> git.mxchange.org Git - friendica.git/blobdiff - mod/message.php
multi-user, do not cache open mbox
[friendica.git] / mod / message.php
index 9d30abd668df63040c8a0af34caece92602ec3f2..7f17a362b3cb518770fd5a2ac3994bc11d8825a0 100644 (file)
@@ -172,7 +172,9 @@ function message_content(&$a) {
                        '$linkurl' => t('Please enter a link URL:')
                ));
        
-               $select = contact_select('messageto','message-to-select', false, 4, true);
+               $preselect = (isset($a->argv[2])?array($a->argv[2]):false);
+       
+               $select = contact_select('messageto','message-to-select', $preselect, 4, true);
                $tpl = load_view_file('view/prv_message.tpl');
                $o .= replace_macros($tpl,array(
                        '$header' => t('Send Private Message'),
@@ -235,7 +237,7 @@ function message_content(&$a) {
                                '$delete' => t('Delete conversation'),
                                '$body' => $rr['body'],
                                '$to_name' => $rr['name'],
-                               '$date' => datetime_convert('UTC',date_default_timezone_get(),$rr['mailcreated'],'D, d M Y - g:i A')
+                               '$date' => datetime_convert('UTC',date_default_timezone_get(),$rr['mailcreated'], t('D, d M Y - g:i A'))
                        ));
                }
                $o .= paginate($a);