DataObjects/pman.links.ini
[Pman.Core] / ConvertStyle.php
index 31ee1c3..3807868 100644 (file)
@@ -19,12 +19,17 @@ class Pman_Core_ConvertStyle extends Pman
     
     function relPath($base, $url)
     {  
+        
         if (preg_match('/^(http|https|mailto):/',$url)) {
             return $url;
         }
         
         $ui = parse_url($base);
         
+        if($ui['host'] == 'localhost'){
+            return $ui['scheme'] .'://'.$ui['host']. $ui['path'] . '/'. $url;
+        }
+        
         if (substr($url,0,2) == '//') {
             return $ui['scheme'] .':' .  $url;
         }