1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 19:41:29 +00:00

fix schema for favicon_avg_color

This commit is contained in:
Andrew Dolgov
2013-04-15 14:54:17 +04:00
parent 2cfbb448fb
commit 14118af36f
4 changed files with 11 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
<?php
define('EXPECTED_CONFIG_VERSION', 26);
define('SCHEMA_VERSION', 116);
define('SCHEMA_VERSION', 117);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);
@@ -511,13 +511,13 @@
return $icon_file;
}
}
function calculate_avg_color($iconFile) {
require_once "lib/floIcon.php";
$imgInfo = @getimagesize($iconFile);
if(strtolower($imgInfo['mime'])=='image/vnd.microsoft.icon') {
$ico = new floIcon();
@$ico->readICO($iconFile);