1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 22:41:28 +00:00

add ability to auto-assign articles to labels (bump schema)

This commit is contained in:
Andrew Dolgov
2012-10-30 12:58:35 +04:00
parent 92c14e9d53
commit b24504b121
7 changed files with 72 additions and 9 deletions

View File

@@ -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)