From ca848234375867240ba6cc6d4b43599e770a54e8 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 14 Jun 2011 20:49:25 -0700 Subject: Dear $username not expanded/replaced in text emails --- mod/item.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index d7c15ff02..776c0dcc2 100644 --- a/mod/item.php +++ b/mod/item.php @@ -544,6 +544,7 @@ function item_post(&$a) { // load the template for private message notifications $tpl = get_intltext_template('cmnt_received_html_body_eml.tpl'); $email_html_body_tpl = replace_macros($tpl,array( + '$username' => $user['username'], '$sitename' => $a->config['sitename'], // name of this site '$siteurl' => $a->get_baseurl(), // descriptive url of this site '$thumb' => $author['thumb'], // thumbnail url for sender icon @@ -557,6 +558,7 @@ function item_post(&$a) { // load the template for private message notifications $tpl = get_intltext_template('cmnt_received_text_body_eml.tpl'); $email_text_body_tpl = replace_macros($tpl,array( + '$username' => $user['username'], '$sitename' => $a->config['sitename'], // name of this site '$siteurl' => $a->get_baseurl(), // descriptive url of this site '$thumb' => $author['thumb'], // thumbnail url for sender icon @@ -610,6 +612,7 @@ function item_post(&$a) { // load the template for private message notifications $tpl = load_view_file('view/wall_received_html_body_eml.tpl'); $email_html_body_tpl = replace_macros($tpl,array( + '$username' => $user['username'], '$sitename' => $a->config['sitename'], // name of this site '$siteurl' => $a->get_baseurl(), // descriptive url of this site '$thumb' => $author['thumb'], // thumbnail url for sender icon @@ -622,6 +625,7 @@ function item_post(&$a) { // load the template for private message notifications $tpl = load_view_file('view/wall_received_text_body_eml.tpl'); $email_text_body_tpl = replace_macros($tpl,array( + '$username' => $user['username'], '$sitename' => $a->config['sitename'], // name of this site '$siteurl' => $a->get_baseurl(), // descriptive url of this site '$thumb' => $author['thumb'], // thumbnail url for sender icon -- cgit v1.2.3