Commit 5c2fc047 by pupi1985

User can send an HTML notification without having to rewrite the whole logic

parent 8903a5e9
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
} }
function qa_send_notification($userid, $email, $handle, $subject, $body, $subs) function qa_send_notification($userid, $email, $handle, $subject, $body, $subs, $html = false)
/* /*
Send email to person with $userid and/or $email and/or $handle (null/invalid values are ignored or retrieved from Send email to person with $userid and/or $email and/or $handle (null/invalid values are ignored or retrieved from
user database as appropriate). Email uses $subject and $body, after substituting each key in $subs with its user database as appropriate). Email uses $subject and $body, after substituting each key in $subs with its
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
'toname' => $handle, 'toname' => $handle,
'subject' => strtr($subject, $subs), 'subject' => strtr($subject, $subs),
'body' => (empty($handle) ? '' : qa_lang_sub('emails/to_handle_prefix', $handle)).strtr($body, $subs), 'body' => (empty($handle) ? '' : qa_lang_sub('emails/to_handle_prefix', $handle)).strtr($body, $subs),
'html' => false, 'html' => $html,
)); ));
} else } else
...@@ -162,4 +162,4 @@ ...@@ -162,4 +162,4 @@
/* /*
Omit PHP closing tag to help avoid accidental output Omit PHP closing tag to help avoid accidental output
*/ */
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment