From 258068b3793ff8b75cc1642d8fd77920ecb47a9c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Apr 2013 16:08:40 +0400 Subject: [PATCH] do not calculate favicon color on manual icon replace --- classes/pref/feeds.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index ddfa56d0..e3172511 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -500,14 +500,8 @@ class Pref_Feeds extends Handler_Protected { if ($this->dbh->num_rows($result) != 0) { @unlink(ICONS_DIR . "/$feed_id.ico"); if (rename($icon_file, ICONS_DIR . "/$feed_id.ico")) { - - require_once "colors.php"; - - $favicon_color = $this->dbh->escape_string( - calculate_avg_color(ICONS_DIR . "/$feed_id.ico")); - $this->dbh->query("UPDATE ttrss_feeds SET - favicon_avg_color = '$favicon_color' + favicon_avg_color = '' WHERE id = '$feed_id'"); $rc = 0; -- 2.39.5