From: Edward Date: Tue, 8 Jul 2014 05:29:11 +0000 (+0800) Subject: ConvertStyle.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=4c5c8daf6cb73b051cb9dca6c225505ec25bc309 ConvertStyle.php --- 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){