summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-12 17:02:07 +0300
committerAndrew Dolgov <[email protected]>2017-02-12 17:02:07 +0300
commit676c7303ca1aec697a0296344bf10a6066dcea1a (patch)
tree7c70a1db1a5e3ae0d364b4344eec6bb51d138aac
parent58210301e0e462ddfe9bd625865059d57a0c7cd7 (diff)
add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2)
-rw-r--r--include/functions2.php2
-rw-r--r--plugins/af_zz_imgproxy/init.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 21fe805f7..75a3f8716 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 923f81734..bfa44a3b1 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;
}