From: Edward Date: Fri, 21 Feb 2014 05:30:46 +0000 (+0800) Subject: ConvertStyle.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=64ea32f5fc94bccbc3a7852d72611ed40cd4c882 ConvertStyle.php --- diff --git a/ConvertStyle.php b/ConvertStyle.php index d6530bf2..3807868d 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -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; }