From 64ea32f5fc94bccbc3a7852d72611ed40cd4c882 Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 21 Feb 2014 13:30:46 +0800 Subject: [PATCH] ConvertStyle.php --- ConvertStyle.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.39.2