var $styleSheets = array();
- function convertStyle($url, $file, $is_url = true)
+ function convertStyle($url = '', $file = false, $is_external = true)
{
- if($is_url && !empty($url))
+ if(!empty($url))
{
$host = parse_url($url);
require_once 'System.php';
}
}
- if(!$is_url){
+ if(!empty($file)){
$data = file_get_contents($file);
}
$img->setAttribute('src', $this->relPath($url, $href));
continue;
}
- $this->jerr('Please use the absolutely url for image src!');
+ if($is_external){
+ $this->jerr('Please use the absolutely url for image src!');
+ }
}
}