Download & Extend

Variables not translated in HTML format

Project:Mail
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

When I send a mail in plain text the variable %username and others get translated accordingly. When sending in HTML format, they do not.

Comments

#1

Version:4.6.x-1.x-dev» master

The problem resides in function theme_mail_message(); it calls node_view to get the node's text. Replace the call to node_view with $node->message at line 320.

Also, insert the following before line 367:
$node->message = $message;