diff options
author | Andrew Dolgov <[email protected]> | 2013-08-02 14:04:14 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-08-02 14:04:14 +0400 |
commit | 910592b49a86273a30150bfdb67d9b49409e32f2 (patch) | |
tree | 7725c316a1841b9e0ed7e7ea74420ce698b92b55 /classes | |
parent | 2fc4d981d1c31a2b3d7bf1120d7f585064ad17ac (diff) |
add plugin to cache images in starred articles; pass article_id to
sanitize
Diffstat (limited to 'classes')
-rw-r--r-- | classes/feeds.php | 2 | ||||
-rw-r--r-- | classes/handler/public.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 9aa75bbe8..3b765d6bd 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -510,7 +510,7 @@ class Feeds extends Handler_Protected { $tags = false; $line["content"] = sanitize($line["content"], - sql_bool_to_bool($line['hide_images']), false, $entry_site_url, $highlight_words); + sql_bool_to_bool($line['hide_images']), false, $entry_site_url, $highlight_words, $line["id"]); foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_RENDER_ARTICLE_CDM) as $p) { $line = $p->hook_render_article_cdm($line); diff --git a/classes/handler/public.php b/classes/handler/public.php index de0ab66f8..9c0359507 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -390,6 +390,11 @@ class Handler_Public extends Handler { } } + function updateTask() { + + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op); + } + function globalUpdateFeeds() { RPC::updaterandomfeed_real($this->dbh); |