From 273a2f6b43aae0c8a8ed0cfce767ddeedd26106d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 Nov 2005 08:04:41 +0100 Subject: schema updates, ICONS_DIR/ICONS_URL moved to config.php --- backend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index a8a94cf6e..ff43bc6fe 100644 --- a/backend.php +++ b/backend.php @@ -858,7 +858,7 @@ foreach ($ids as $id) { db_query($link, "DELETE FROM ttrss_feeds WHERE id = '$id'"); - $icons_dir = get_pref($link, 'ICONS_DIR'); + $icons_dir = ICONS_DIR; if (file_exists($icons_dir . "/$id.ico")) { unlink($icons_dir . "/$id.ico"); @@ -944,11 +944,11 @@ print ""; - $icon_file = get_pref($link, 'ICONS_DIR') . "/$feed_id.ico"; + $icon_file = ICONS_DIR . "/$feed_id.ico"; if (file_exists($icon_file) && filesize($icon_file) > 0) { $feed_icon = ""; + src=\"" . ICONS_URL . "/$feed_id.ico\">"; } else { $feed_icon = " "; } -- cgit v1.2.3