mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
move rgb/hsl functions to their own namespace
This commit is contained in:
@@ -322,9 +322,9 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
if (!isset($rgba_cache[$feed_id])) {
|
if (!isset($rgba_cache[$feed_id])) {
|
||||||
if ($fav_color && $fav_color != 'fail') {
|
if ($fav_color && $fav_color != 'fail') {
|
||||||
$rgba_cache[$feed_id] = _color_unpack($fav_color);
|
$rgba_cache[$feed_id] = \Colors\_color_unpack($fav_color);
|
||||||
} else {
|
} else {
|
||||||
$rgba_cache[$feed_id] = _color_unpack($this->_color_of($line['feed_title']));
|
$rgba_cache[$feed_id] = \Colors\_color_unpack($this->_color_of($line['feed_title']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -610,7 +610,7 @@ class RSSUtils {
|
|||||||
id = ?");
|
id = ?");
|
||||||
$sth->execute([$feed]);
|
$sth->execute([$feed]);
|
||||||
|
|
||||||
$favicon_color = calculate_avg_color($favicon_file);
|
$favicon_color = \Colors\calculate_avg_color($favicon_file);
|
||||||
|
|
||||||
$favicon_colorstring = ",favicon_avg_color = " . $pdo->quote($favicon_color);
|
$favicon_colorstring = ",favicon_avg_color = " . $pdo->quote($favicon_color);
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace Colors;
|
||||||
|
|
||||||
if (file_exists("lib/floIcon.php")) {
|
if (file_exists("lib/floIcon.php")) {
|
||||||
require_once "lib/floIcon.php";
|
require_once "lib/floIcon.php";
|
||||||
|
|||||||
Reference in New Issue
Block a user