$this->import[$i] = '"' . substr($this->import[$i], 4, -1) . '"';
$this->parser->log('Optimised @import : Removed "url("', 'Information');
}
+ else if (!preg_match('/^".+"$/',$this->import[$i])) {
+ // fixes a bug for @import ".." instead of the expected @import url("..")
+ // If it comes in due to @import ".." the "" will be missing and the output will become @import .. (which is an error)
+ $this->import[$i] = '"' . $this->import[$i] . '"';
+ }
+
$output .= $template[0] . '@import ' . $template[5] . $this->import[$i] . $template[6] . $template[13];
}
}