var $styleSheets = array();
- function convertStyle($base, $data, $is_url = false)
+ function convertStyle($base, $path, $is_url = false)
{
// if(!empty($url))
// {
// }
// }
- if(file_exists($file))
- {
- $data = file_get_contents($file);
+ if(!$is_url){
+ $data = file_get_contents($path);
}
+
libxml_use_internal_errors (true);
$doc = new DOMDocument('1.0', 'UTF-8');
$doc->loadHTML('<?xml encoding="UTF-8">'.$data);