From: Andrew Dolgov Date: Mon, 29 Apr 2013 12:08:40 +0000 (+0400) Subject: do not calculate favicon color on manual icon replace X-Git-Tag: 1.7.9~25^2~58 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=258068b3793ff8b75cc1642d8fd77920ecb47a9c;p=tt-rss.git do not calculate favicon color on manual icon replace --- 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;