From 65cc1c196f0aff83a6c9db7b6e3a36630b66392d Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 4 Jun 2008 09:13:06 +0000 Subject: Chech for mb_convert_encoding first because mbstring is optional for RoundCube + add some phpdoc --- program/steps/mail/func.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'program/steps/mail') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 0a1e4d4c7..85b04319f 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -514,9 +514,15 @@ function rcmail_get_messagecount_text($count=NULL, $page=NULL) /** + * Convert the given message part to proper HTML + * which can be displayed the message view * + * @param object rcube_message_part Message part + * @param bool True if external objects (ie. images ) are allowed + * @param bool True if part should be converted to plaintext + * @return string Formatted HTML string */ -function rcmail_print_body($part, $safe=FALSE, $plain=FALSE) +function rcmail_print_body($part, $safe=false, $plain=false) { global $REMOTE_OBJECTS; -- cgit v1.2.3