ConvertStyle.php
authorEdward <edward@roojs.com>
Wed, 19 Feb 2014 09:12:00 +0000 (17:12 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Feb 2014 09:12:00 +0000 (17:12 +0800)
ConvertStyle.php

index 605da64..bf5becb 100644 (file)
@@ -62,7 +62,7 @@ class Pman_Core_ConvertStyle extends Pman
     
     var $styleSheets = array();
     
-    function convertStyle($base, $data, $is_url = false)
+    function convertStyle($base, $path, $is_url = false)
     {
 //        if(!empty($url))
 //        {
@@ -82,11 +82,11 @@ class Pman_Core_ConvertStyle extends Pman
 //            }
 //        }
         
-        if(file_exists($file))
-        {
-            $data = file_get_contents($file);
+        if(!$is_url){
+            $data = file_get_contents($path);
         }
         
+        
         libxml_use_internal_errors (true);
         $doc = new DOMDocument('1.0', 'UTF-8');
         $doc->loadHTML('<?xml encoding="UTF-8">'.$data);