mirror of
https://github.com/friendica/friendica
synced 2025-01-18 16:24:27 +00:00
use local photo in email, email photo upload point to new url
This commit is contained in:
parent
75306b6294
commit
184f8e143e
2 changed files with 6 additions and 3 deletions
|
@ -202,7 +202,7 @@ function message_content(&$a) {
|
||||||
'$from_name' =>$rr['from-name'],
|
'$from_name' =>$rr['from-name'],
|
||||||
'$from_url' => $a->get_baseurl() . '/redir/' . $rr['contact-id'],
|
'$from_url' => $a->get_baseurl() . '/redir/' . $rr['contact-id'],
|
||||||
'$sparkle' => ' sparkle',
|
'$sparkle' => ' sparkle',
|
||||||
'$from_photo' => $rr['from-photo'],
|
'$from_photo' => $rr['thumb'],
|
||||||
'$subject' => (($rr['mailseen']) ? $rr['title'] : '<strong>' . $rr['title'] . '</strong>'),
|
'$subject' => (($rr['mailseen']) ? $rr['title'] : '<strong>' . $rr['title'] . '</strong>'),
|
||||||
'$delete' => t('Delete conversation'),
|
'$delete' => t('Delete conversation'),
|
||||||
'$body' => $rr['body'],
|
'$body' => $rr['body'],
|
||||||
|
@ -247,7 +247,10 @@ function message_content(&$a) {
|
||||||
|
|
||||||
$tpl = load_view_file('view/msg-header.tpl');
|
$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');
|
$tpl = load_view_file('view/mail_conv.tpl');
|
||||||
|
|
|
@ -54,7 +54,7 @@ tinyMCE.init({
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var uploader = new window.AjaxUpload(
|
var uploader = new window.AjaxUpload(
|
||||||
'prvmail-upload',
|
'prvmail-upload',
|
||||||
{ action: 'wall_upload',
|
{ action: 'wall_upload/$nickname',
|
||||||
name: 'userfile',
|
name: 'userfile',
|
||||||
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
||||||
onComplete: function(file,response) {
|
onComplete: function(file,response) {
|
||||||
|
|
Loading…
Reference in a new issue