From bbefea90a7f05fd02398fe2deb1e9c7d234b5b82 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 27 Dec 2011 16:41:49 +0400 Subject: implement import/export of labels using OPML --- include/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 175950289..80581433a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3972,7 +3972,7 @@ db_query($link, "COMMIT"); } - function label_create($link, $caption) { + function label_create($link, $caption, $fg_color = '', $bg_color = '') { db_query($link, "BEGIN"); @@ -3983,8 +3983,8 @@ if (db_num_rows($result) == 0) { $result = db_query($link, - "INSERT INTO ttrss_labels2 (caption,owner_uid) - VALUES ('$caption', '".$_SESSION["uid"]."')"); + "INSERT INTO ttrss_labels2 (caption,owner_uid,fg_color,bg_color) + VALUES ('$caption', '".$_SESSION["uid"]."', '$fg_color', '$bg_color')"); $result = db_affected_rows($link, $result) != 0; } -- cgit v1.2.3