mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-27 09:01:28 +00:00
only enable colored favicons in vfeeds; fix RGB triplet packing
This commit is contained in:
@@ -416,9 +416,13 @@
|
||||
|
||||
require_once "colors.php";
|
||||
|
||||
if (is_array($favicon_color))
|
||||
$favicon_colorstring = ",favicon_avg_color = '" .
|
||||
_color_pack(array_slice($favicon_color, 0, 3)) . "'";
|
||||
if (is_array($favicon_color))
|
||||
$tmp = array($favicon_color['red'],
|
||||
$favicon_color['green'],
|
||||
$favicon_color['blue']);
|
||||
|
||||
$favicon_colorstring = ",favicon_avg_color = '" .
|
||||
_color_pack($tmp) . "'";
|
||||
}
|
||||
|
||||
db_query($link, "UPDATE ttrss_feeds SET favicon_last_checked = NOW() $favicon_colorstring
|
||||
|
||||
Reference in New Issue
Block a user