Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
When preprocessing variables for htmlmail.tpl.php
template at template_preprocess_htmlmail()
, it defines the $theme_url
variable which could be used for images in the email like in my use case.
It works fine in most of the cases, but if you use language path prefix (e.q. http://www.example.com/de), the $theme_url
variable gets wrong.
// htmlmail.module:125
$variables['theme_url'] = url(
$variables['theme_path'], array('absolute' => TRUE)
);
Related issues:
Comment | File | Size | Author |
---|---|---|---|
#1 | htmlmail-2001740-1.patch | 682 bytes | iMiksu |
Comments
Comment #1
iMiksuThis patch should do the work. Please test.
Comment #2
lmeurs CreditAttribution: lmeurs commented@iMiksu: Patch works great!
Comment #4
Nafes CreditAttribution: Nafes as a volunteer commentedThank you, iMiksu!