From a49fd1f6a4c8e55a2f41ee555a97441f57621c74 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Tue, 18 Feb 2014 17:32:36 +0000 Subject: update emogrifier git-svn-id: http://piwigo.org/svn/trunk@27403 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_mail.inc.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'include/functions_mail.inc.php') diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 20dd9e610..e40e94b55 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -907,17 +907,8 @@ function move_css_to_body($content) { include_once(PHPWG_ROOT_PATH.'include/emogrifier.class.php'); - // disable DOM warnings - $e_state = libxml_use_internal_errors(true); - $e = new Emogrifier($content); - // $e->preserveStyleTag = true; - $content = $e->emogrify(); - - libxml_clear_errors(); - libxml_use_internal_errors($e_state); - - return $content; + return $e->emogrify(); } /** -- cgit v1.2.3