id=\"RROW-$id\" $mouseover_attrs'>";
//setting feed headline background color, needs to change text color based on dark/light
- $favColor = explode("|", $line['favicon_avg_color']);
- $reply['content'] .= "<div class=\"cdmHeader\" style=\"background-color: rgb($favColor[0], $favColor[1], $favColor[2]);\">";
+ $fav_color = $line['favicon_avg_color'];
+ $reply['content'] .= "<div class=\"cdmHeader\" style=\"background-color: $fav_color;\">";
$reply['content'] .= "<div style=\"vertical-align : middle\">";
$reply['content'] .= "<input dojoType=\"dijit.form.CheckBox\"
LEFT JOIN ttrss_feeds ON (feed_id = ttrss_feeds.id)";
}
+ if ($vfeed_query_part)
+ $vfeed_query_part .= "favicon_avg_color,";
+
$query = "SELECT DISTINCT
date_entered,
guid,
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