From 4c5c8daf6cb73b051cb9dca6c225505ec25bc309 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 8 Jul 2014 13:29:11 +0800 Subject: [PATCH] ConvertStyle.php --- ConvertStyle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConvertStyle.php b/ConvertStyle.php index 417682b7..c0062b73 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -89,6 +89,8 @@ class Pman_Core_ConvertStyle extends Pman if(!$is_url){ $data = file_get_contents($file); } + + if(preg_match('/^/', $subject)) return $data; libxml_use_internal_errors (true); @@ -141,8 +143,6 @@ class Pman_Core_ConvertStyle extends Pman $data = $doc->saveHTML(); - return $data; - $htmldoc = new HTML_CSS_InlineStyle($data); if(count($this->styleSheets) > 0){ foreach ($this->styleSheets as $styleSheet){ -- 2.39.2