]> git.wh0rd.org Git - tt-rss.git/commitdiff
add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2)
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 12 Feb 2017 14:02:07 +0000 (17:02 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 12 Feb 2017 14:02:07 +0000 (17:02 +0300)
include/functions2.php
plugins/af_zz_imgproxy/init.php

index 21fe805f7f09ba8ae735cc09409ff937a29db7c9..75a3f8716952fc1ff51eff18c9517bd53a44fd6a 100644 (file)
                        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"];
index 923f8173490361509c77536507b4dc0925b0f3a3..bfa44a3b17449e0759d8a17a7f6e5e25e96c1307 100644 (file)
@@ -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;
        }