Variables not translated in HTML format

jo1ene - September 15, 2005 - 16:20
Project:Mail
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

flyfishr64 - October 20, 2006 - 18:28
Version:4.6.x-1.x-dev» HEAD

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;

 
 

Drupal is a registered trademark of Dries Buytaert.