Changeset 25787 for trunk


Ignore:
Timestamp:
Dec 4, 2013, 10:32:52 PM (11 years ago)
Author:
mistic100
Message:

feature 2995: disable DOM parsing warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r25563 r25787  
    908908  include_once(PHPWG_ROOT_PATH.'include/emogrifier.class.php');
    909909
     910  // disable DOM warnings
     911  $e_state = libxml_use_internal_errors(true);
     912
    910913  $e = new Emogrifier($content);
    911914  // $e->preserveStyleTag = true;
    912   return $e->emogrify();
     915  $content = $e->emogrify();
     916
     917  libxml_clear_errors();
     918  libxml_use_internal_errors($e_state);
     919
     920  return $content;
    913921}
    914922
Note: See TracChangeset for help on using the changeset viewer.