ConvertStyle.php
authorEdward <edward@roojs.com>
Fri, 21 Feb 2014 05:30:46 +0000 (13:30 +0800)
committerEdward <edward@roojs.com>
Fri, 21 Feb 2014 05:30:46 +0000 (13:30 +0800)
ConvertStyle.php

index d6530bf..3807868 100644 (file)
@@ -25,7 +25,11 @@ class Pman_Core_ConvertStyle extends Pman
         }
         
         $ui = parse_url($base);
-        print_r($ui);exit;
+        
+        if($ui['host'] == 'localhost'){
+            return $ui['scheme'] .'://'.$ui['host']. $ui['path'] . '/'. $url;
+        }
+        
         if (substr($url,0,2) == '//') {
             return $ui['scheme'] .':' .  $url;
         }