}
$url = $link->getAttribute('href');
$file = $ff->rootDir . $url;
- if (!file_exists($file)) {
- $link->setAttribute('href', 'missing:' . $file);
- continue;
+
+ if (!preg_match('#^http://#', $url)) {
+ $file = $ff->rootDir . $url;
+
+ if (!file_exists($file)) {
+ echo $file;
+ $link->setAttribute('href', 'missing:' . $file);
+ continue;
+ }
+ } else {
+ $file = $url;
}
+
$par = $link->parentNode;
$par->removeChild($link);
$s = $dom->createElement('style');