add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2)
This commit is contained in:
parent
58210301e0
commit
676c7303ca
|
@ -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"];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue