HTML/CSS/Minify.php
authorAlan Knowles <alan@roojs.com>
Mon, 31 Aug 2015 05:32:22 +0000 (13:32 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 31 Aug 2015 05:32:22 +0000 (13:32 +0800)
HTML/CSS/Minify.php

index 2ea1ef7..8ae15f6 100644 (file)
@@ -506,9 +506,12 @@ class HTML_CSS_Minify
         foreach ($matches as $match) {
             // determine if it's a url() or an @import match
             $type = (strpos($match[0], '@import') === 0 ? 'import' : 'url');
-
+            
+            
+             
+            
             // fix relative url
-            $url = $converter->convert($match['path']);
+            $url = $this->convertPath($base_url, $base_url_to, $match['path']);
 
             // build replacement
             $search[] = $match[0];