mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 11:55:57 +00:00
do not needlessly mark icons as failed
This commit is contained in:
@@ -418,9 +418,6 @@
|
|||||||
/* terrible hack: if we crash on floicon shit here, we won't check
|
/* terrible hack: if we crash on floicon shit here, we won't check
|
||||||
* the icon avgcolor again (unless the icon got updated) */
|
* the icon avgcolor again (unless the icon got updated) */
|
||||||
|
|
||||||
db_query("UPDATE ttrss_feeds SET favicon_avg_color = 'fail' WHERE
|
|
||||||
id = '$feed'");
|
|
||||||
|
|
||||||
$favicon_file = ICONS_DIR . "/$feed.ico";
|
$favicon_file = ICONS_DIR . "/$feed.ico";
|
||||||
$favicon_modified = @filemtime($favicon_file);
|
$favicon_modified = @filemtime($favicon_file);
|
||||||
|
|
||||||
@@ -435,6 +432,9 @@
|
|||||||
if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color == '') {
|
if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color == '') {
|
||||||
require_once "colors.php";
|
require_once "colors.php";
|
||||||
|
|
||||||
|
db_query("UPDATE ttrss_feeds SET favicon_avg_color = 'fail' WHERE
|
||||||
|
id = '$feed'");
|
||||||
|
|
||||||
$favicon_color = db_escape_string(
|
$favicon_color = db_escape_string(
|
||||||
calculate_avg_color($favicon_file));
|
calculate_avg_color($favicon_file));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user