diff options
author | Andrew Dolgov <[email protected]> | 2012-10-30 12:58:35 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-10-30 12:58:35 +0400 |
commit | b24504b121315813939fa5af1963bee93b6d9d4d (patch) | |
tree | a9a91c9dfffcdd5e498e6049c5586a89abc0bd7b /include/functions.php | |
parent | 92c14e9d5374dec7940e007dcd9075ac9b42c2ab (diff) |
add ability to auto-assign articles to labels (bump schema)
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 2e230c3c6..4d7f61a2b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,6 +1,6 @@ <?php define('EXPECTED_CONFIG_VERSION', 26); - define('SCHEMA_VERSION', 97); + define('SCHEMA_VERSION', 98); $fetch_last_error = false; @@ -3923,6 +3923,18 @@ } } + function get_all_labels($link, $owner_uid) { + $rv = array(); + + $result = db_query($link, "SELECT fg_color, bg_color, caption FROM ttrss_labels2 WHERE owner_uid = " . $owner_uid); + + while ($line = db_fetch_assoc($result)) { + array_push($rv, $line); + } + + return $rv; + } + function label_update_cache($link, $id, $labels = false, $force = false) { if ($force) |