From 676c7303ca1aec697a0296344bf10a6066dcea1a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 Feb 2017 17:02:07 +0300 Subject: [PATCH] add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2) --- include/functions2.php | 2 +- plugins/af_zz_imgproxy/init.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5