ConvertStyle.php
authorEdward <edward@roojs.com>
Tue, 8 Jul 2014 05:30:14 +0000 (13:30 +0800)
committerEdward <edward@roojs.com>
Tue, 8 Jul 2014 05:30:14 +0000 (13:30 +0800)
ConvertStyle.php

index c0062b7..4179c51 100644 (file)
@@ -90,8 +90,9 @@ class Pman_Core_ConvertStyle extends Pman
             $data = file_get_contents($file);
         }
         
-        if(preg_match('/^/', $subject))
-        return $data;
+        if(preg_match('/^\s<!--\sNOT CONVERT STYLE\s-->\s/', $data)){
+            return $data;
+        }
         
         libxml_use_internal_errors (true);
         $doc = new DOMDocument('1.0', 'UTF-8');