]> git.mxchange.org Git - friendica.git/commitdiff
use local photo in email, email photo upload point to new url
authorFriendika <info@friendika.com>
Mon, 6 Dec 2010 03:28:47 +0000 (19:28 -0800)
committerFriendika <info@friendika.com>
Mon, 6 Dec 2010 03:28:47 +0000 (19:28 -0800)
mod/message.php
view/en/msg-header.tpl

index fa4af3f466de0f472681b967899b9e54071fd4af..251b5a4149125d80796ce32b1ebb88f8cf120584 100644 (file)
@@ -202,7 +202,7 @@ function message_content(&$a) {
                                '$from_name' =>$rr['from-name'],
                                '$from_url' => $a->get_baseurl() . '/redir/' . $rr['contact-id'],
                                '$sparkle' => ' sparkle',
-                               '$from_photo' => $rr['from-photo'],
+                               '$from_photo' => $rr['thumb'],
                                '$subject' => (($rr['mailseen']) ? $rr['title'] : '<strong>' . $rr['title'] . '</strong>'),
                                '$delete' => t('Delete conversation'),
                                '$body' => $rr['body'],
@@ -247,7 +247,10 @@ function message_content(&$a) {
 
                $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(
+                       '$nickname' => $a->user['nickname'],
+                       '$baseurl' => $a->get_baseurl()
+               ));
 
 
                $tpl = load_view_file('view/mail_conv.tpl');
index 494d5e93e227b2b67720fe7b2f3ec9d8ce9477be..3d2567f62737c36744379d2b7945cd65d1e6f837 100644 (file)
@@ -54,7 +54,7 @@ tinyMCE.init({
        $(document).ready(function() {
                var uploader = new window.AjaxUpload(
                        'prvmail-upload',
-                       { action: 'wall_upload',
+                       { action: 'wall_upload/$nickname',
                                name: 'userfile',
                                onSubmit: function(file,ext) { $('#profile-rotator').show(); },
                                onComplete: function(file,response) {