summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-27 16:41:49 +0400
committerAndrew Dolgov <[email protected]>2011-12-27 16:43:14 +0400
commitbbefea90a7f05fd02398fe2deb1e9c7d234b5b82 (patch)
treededc161022c94d0913cfd264bd199d402ea68807 /include/functions.php
parent5ee7470ddfee32195ff5394f6d92e4aa8d23f9c7 (diff)
implement import/export of labels using OPML
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php6
1 files changed, 3 insertions, 3 deletions
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;
}