1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-30 13:57:11 +00:00

style feed icon and opml file upload controls

This commit is contained in:
Andrew Dolgov
2017-12-03 22:35:12 +03:00
parent 229c139c6a
commit 5f5b0de423
4 changed files with 32 additions and 9 deletions

View File

@@ -1586,6 +1586,10 @@ class Feeds extends Handler_Protected {
}
}
static function getIconFile($feed_id) {
return ICONS_DIR . "/$feed_id.ico";
}
static function getFeedIcon($id) {
switch ($id) {
case 0:
@@ -1610,8 +1614,11 @@ class Feeds extends Handler_Protected {
if ($id < LABEL_BASE_INDEX) {
return "images/label.png";
} else {
if (file_exists(ICONS_DIR . "/$id.ico"))
return ICONS_URL . "/$id.ico";
$icon = self::getIconFile($id);
if ($icon && file_exists($icon)) {
return ICONS_URL . "/" . basename($icon) . "?" . filemtime($icon);
}
}
break;
}