ConvertStyle.php
authorEdward <edward@roojs.com>
Tue, 8 Jul 2014 05:29:11 +0000 (13:29 +0800)
committerEdward <edward@roojs.com>
Tue, 8 Jul 2014 05:29:11 +0000 (13:29 +0800)
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){