ConvertStyle.php
authorEdward <edward@roojs.com>
Wed, 19 Feb 2014 08:45:32 +0000 (16:45 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Feb 2014 08:45:32 +0000 (16:45 +0800)
ConvertStyle.php

index 95cfa6b..3cd0e95 100644 (file)
@@ -64,23 +64,23 @@ class Pman_Core_ConvertStyle extends Pman
     
     function convertStyle($url, $file)
     {
-        if(!empty($url))
-        {
-            $host = parse_url($url);
-            require_once 'System.php';
-            $wget = System::which('wget');
-            if (!$wget) {
-                $this->jerr("no wget");
-            }
-            $cmd =  $wget . ' -q -O -  ' . escapeshellarg($url);
-            
-            //echo $cmd; exit;
-            $data = `$cmd`;
-            
-            if (!trim(strlen($data))) {
-                $this->jerr("url returned an empty string");
-            }
-        }
+//        if(!empty($url))
+//        {
+//            $host = parse_url($url);
+//            require_once 'System.php';
+//            $wget = System::which('wget');
+//            if (!$wget) {
+//                $this->jerr("no wget");
+//            }
+//            $cmd =  $wget . ' -q -O -  ' . escapeshellarg($url);
+//            
+//            //echo $cmd; exit;
+//            $data = `$cmd`;
+//            
+//            if (!trim(strlen($data))) {
+//                $this->jerr("url returned an empty string");
+//            }
+//        }
         
         if(file_exists($file))
         {