[eluser]Maxximus[/eluser]
Well to be honest I just read this part:
Code:
foreach ($matches['urls'] as $old_url) {
$old_url = trim($old_url,'"\'');
if (strlen($old_url[1]) > 7 && strcasecmp(substr($old_url[1], 0, 7), 'http://') == 0) {
$new_url = $old_url;
} else {
$new_url = dirname($css_path).'/'.$old_url;
}
$urls[$old_url] = relative_path_to(str_replace(dirname(FCPATH),'',trim($this->cache_dir_css)).'/', $new_url);
}
It seems to always do the relative_path_to function. Tried it with a relative_path_to function found on the net.
You were pretty quick with your reaction
, just to make sure you see it: pls add header("Content-type: text/css"); to the generated CSS when using .php extension.
EDIT: See it's there but for some reason it was notgenerated in the file. I'll look in to it...