mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 07:55:57 +00:00
do not recalculate avg color repeatedly
This commit is contained in:
@@ -433,7 +433,7 @@
|
|||||||
if ($favicon_modified_new > $favicon_modified)
|
if ($favicon_modified_new > $favicon_modified)
|
||||||
$favicon_avg_color = '';
|
$favicon_avg_color = '';
|
||||||
|
|
||||||
if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color != 'fail') {
|
if (file_exists($favicon_file) && function_exists("imagecreatefromstring") && $favicon_avg_color == '') {
|
||||||
require_once "colors.php";
|
require_once "colors.php";
|
||||||
|
|
||||||
$favicon_color = db_escape_string(
|
$favicon_color = db_escape_string(
|
||||||
|
|||||||
Reference in New Issue
Block a user