From c8bec34f8f0fe9d1a17dcf339d2d86fcc72b1e7a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 5 Jun 2019 10:06:40 +0000 Subject: [PATCH] Properly apply assets_path to contact photo placeholder --- program/steps/addressbook/func.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 44d3115d0..7efee0316 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -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']);