add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2)

This commit is contained in:
Andrew Dolgov 2017-02-12 17:02:07 +03:00
parent 58210301e0
commit 676c7303ca
2 changed files with 2 additions and 2 deletions

View file

@ -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"];

View 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;
}