summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-08-12 19:36:29 +0400
committerAndrew Dolgov <[email protected]>2014-08-12 19:36:29 +0400
commit0084f0d1ba81522b243bb3b9138334ba0a7d2f00 (patch)
tree5fd4963fb83d414929f880543875a764007351b1 /include/rssfuncs.php
parent89018afa13887c46de4c8ef8189fc7b500cdac0f (diff)
update stored article after filter has finished processing to prevent plugins from reverting changes of earlier invoked plugins (experimental)
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index cdc490cb0..f657f8413 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -687,6 +687,12 @@
foreach ($pluginhost->get_hooks(PluginHost::HOOK_ARTICLE_FILTER) as $plugin) {
$article = $plugin->hook_article_filter($article);
+
+ $article["stored"] = array("title" => $article["title"],
+ "content" => $article["content"],
+ "link" => $article["link"],
+ "tags" => $article["tags"],
+ "author" => $article["author"]);
}
$entry_tags = $article["tags"];
@@ -697,7 +703,6 @@
$entry_plugin_data = db_escape_string($article["plugin_data"]);
$entry_content = $article["content"]; // escaped below
-
_debug("plugin data: $entry_plugin_data", $debug_enabled);
if ($cache_images && is_writable(CACHE_DIR . '/images'))