Properly apply assets_path to contact photo placeholder

pull/6796/head
Aleksander Machniak 6 years ago
parent 8932abd2e7
commit c8bec34f8f

@ -921,7 +921,9 @@ function rcmail_contact_photo($attrib)
$photo_img = $attrib['placeholder'] ? $RCMAIL->output->abs_url($attrib['placeholder'], true) : 'program/resources/blank.gif';
}
$RCMAIL->output->set_env('photo_placeholder', $RCMAIL->output->asset_url($photo_img));
$photo_img = $RCMAIL->output->asset_url($photo_img);
$RCMAIL->output->set_env('photo_placeholder', $photo_img);
unset($attrib['placeholder']);

Loading…
Cancel
Save