From: Andrew Dolgov Date: Sun, 12 Feb 2017 14:02:07 +0000 (+0300) Subject: add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2) X-Git-Tag: 17.4~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=676c7303ca1aec697a0296344bf10a6066dcea1a;p=tt-rss.git add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2) --- diff --git a/include/functions2.php b/include/functions2.php index 21fe805f..75a3f871 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -1945,7 +1945,7 @@ foreach ($result as $line) { foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ENCLOSURE_ENTRY) as $plugin) { - $line = $plugin->hook_render_enclosure($line); + $line = $plugin->hook_enclosure_entry($line); } $url = $line["content_url"]; diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index 923f8173..bfa44a3b 100644 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -26,7 +26,7 @@ class Af_Zz_ImgProxy extends Plugin { function hook_enclosure_entry($enc) { $proxy_all = $this->host->get($this, "proxy_all"); - $enc["url"] = $this->rewrite_url_if_needed($enc["url"], $proxy_all); + $enc["content_url"] = $this->rewrite_url_if_needed($enc["content_url"], $proxy_all); return $enc; }