ConvertStyle.php
[Pman.Core] / ConvertStyle.php
index 417682b..c0062b7 100644 (file)
@@ -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){