HOOK_ARTICLE_IMAGE: allow hooks to modify article content
This commit is contained in:
parent
75ab1f05f9
commit
5648b836aa
|
@ -829,7 +829,7 @@ class Article extends Handler_Protected {
|
||||||
$article_stream = "";
|
$article_stream = "";
|
||||||
|
|
||||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_IMAGE) as $p) {
|
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_IMAGE) as $p) {
|
||||||
list ($article_image, $article_stream) = $p->hook_article_image($enclosures, $content, $site_url);
|
list ($article_image, $article_stream, $content) = $p->hook_article_image($enclosures, $content, $site_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$article_image && !$article_stream) {
|
if (!$article_image && !$article_stream) {
|
||||||
|
|
Loading…
Reference in New Issue