$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );
continue;
}
- if (false !== strpos($attr['src'], '//')) {
+ if (false !== strpos($attr['src'], '//') && false === strpos($attr['src'], $baseURL)) {
// contains an absolute path.. that is probably not us...
continue;
}
$html = self::replaceImgUrl($html, $baseURL, $img, $attr, 'src' );
-
-
}
} else {
$provider = $provider == 'Images/Thumb' ? 'Images' : $provider;
}
- print_r($img->URL($thumbsize, $provider, $baseURL));exit;
+
// finally replace the original TAG with the new version..