fix previous, again
This commit is contained in:
parent
bc83dcb381
commit
046a0cc7c8
|
@ -24,7 +24,7 @@ class Af_Zz_ImgProxy extends Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hook_enclosure_entry($enc) {
|
function hook_enclosure_entry($enc) {
|
||||||
if (preg_match("/image/", $enc["type"]) || preg_match("/\.(jpg|png|gif|bmp)/i", $enc["filename"])) {
|
if (preg_match("/image/", $enc["content_type"]) || preg_match("/\.(jpe?g|png|gif|bmp)$/i", $enc["filename"])) {
|
||||||
$proxy_all = $this->host->get($this, "proxy_all");
|
$proxy_all = $this->host->get($this, "proxy_all");
|
||||||
|
|
||||||
$enc["content_url"] = $this->rewrite_url_if_needed($enc["content_url"], $proxy_all);
|
$enc["content_url"] = $this->rewrite_url_if_needed($enc["content_url"], $proxy_all);
|
||||||
|
|
Loading…
Reference in New Issue