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