diff options
author | Andrew Dolgov <[email protected]> | 2014-08-18 23:11:29 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-08-18 23:11:29 +0400 |
commit | eb16bd9f010cab78b58efcb971faf5d067bcf604 (patch) | |
tree | 0bbebc7d2c88795a0cbe717ecdea104dc626e59a /include/rssfuncs.php | |
parent | af244f927e3464c595fd53021f315dd0c4c31ec0 (diff) |
pass correct instance of pluginhost to calculate_article_hash
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 754b4f4cc..baf0cab06 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -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() { @@ -687,7 +687,7 @@ ); $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); |