]> git.wh0rd.org Git - tt-rss.git/commitdiff
pass correct instance of pluginhost to calculate_article_hash
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 18 Aug 2014 19:11:29 +0000 (23:11 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 18 Aug 2014 19:11:29 +0000 (23:11 +0400)
include/rssfuncs.php

index 754b4f4cc97fad7808241da9cd428c006b525eef..baf0cab06b5585d48b1a9d8a582af660f942927c 100644 (file)
@@ -4,7 +4,7 @@
        define_default('DAEMON_SLEEP_INTERVAL', 120);
        define_default('_MIN_CACHE_IMAGE_SIZE', 1024);
 
-       function calculate_article_hash($article) {
+       function calculate_article_hash($article, $pluginhost) {
                $tmp = "";
 
                foreach ($article as $k => $v) {
@@ -13,7 +13,7 @@
                        }
                }
 
-               return sha1(implode(",", PluginHost::getInstance()->get_plugin_names())) . ":" . sha1($tmp);
+               return sha1(implode(",", $pluginhost->get_plugin_names()) . $tmp);
        }
 
        function update_feedbrowser_cache() {
                                        );
 
                                $entry_plugin_data = "";
-                               $entry_current_hash = calculate_article_hash($article);
+                               $entry_current_hash = calculate_article_hash($article, $pluginhost);
 
                                _debug("article hash: $entry_current_hash [stored=$entry_stored_hash]", $debug_enabled);