summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-04 14:24:30 +0300
committerAndrew Dolgov <[email protected]>2017-05-04 14:24:30 +0300
commite60d5b0a84d8ef1035c1b717124ab8db38f28dfc (patch)
tree87fe9e94c13cf3890d5e32471dec4d4e17d9f4e2 /include
parent9549e33c2ce6a5d76c59bede2b098fa7457cceba (diff)
move opml-specific get_feed_category to opml.php
Diffstat (limited to 'include')
-rw-r--r--include/functions2.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 71618b88b..c89e572f2 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -1635,26 +1635,6 @@
}
- function get_feed_category($feed_cat, $parent_cat_id = false) {
- if ($parent_cat_id) {
- $parent_qpart = "parent_cat = '$parent_cat_id'";
- $parent_insert = "'$parent_cat_id'";
- } else {
- $parent_qpart = "parent_cat IS NULL";
- $parent_insert = "NULL";
- }
-
- $result = db_query(
- "SELECT id FROM ttrss_feed_categories
- WHERE $parent_qpart AND title = '$feed_cat' AND owner_uid = ".$_SESSION["uid"]);
-
- if (db_num_rows($result) == 0) {
- return false;
- } else {
- return db_fetch_result($result, 0, "id");
- }
- }
-
function add_feed_category($feed_cat, $parent_cat_id = false) {
if (!$feed_cat) return false;