Changeset 65cc1c1 in github


Ignore:
Timestamp:
Jun 4, 2008 5:13:06 AM (5 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
a8755664
Parents:
5d6ec21
Message:

Chech for mb_convert_encoding first because mbstring is optional for RoundCube + add some phpdoc

Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/lib/washtml.php

    r68217c5 r65cc1c1  
    188188    $node = new DOMDocument('1.0', $config['charset']); 
    189189    $full = true; 
    190     $html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'); 
     190    if (function_exists('mb_convert_encoding')) 
     191      $html = mb_convert_encoding($html, 'HTML-ENTITIES', $config['charset']); 
    191192    @$node->loadHTML($html); 
    192193    return self::dumpHtml($node, $config, $full); 
  • program/steps/mail/func.inc

    r45f56c1 r65cc1c1  
    515515 
    516516/** 
     517 * Convert the given message part to proper HTML 
     518 * which can be displayed the message view 
    517519 * 
    518  */ 
    519 function rcmail_print_body($part, $safe=FALSE, $plain=FALSE) 
     520 * @param object rcube_message_part Message part 
     521 * @param bool  True if external objects (ie. images ) are allowed 
     522 * @param bool  True if part should be converted to plaintext 
     523 * @return string Formatted HTML string 
     524 */ 
     525function rcmail_print_body($part, $safe=false, $plain=false) 
    520526{ 
    521527  global $REMOTE_OBJECTS; 
Note: See TracChangeset for help on using the changeset viewer.