summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorhorus2022-10-26 01:23:50 +0200
committerhorus2022-10-26 01:23:50 +0200
commit882c0eb89b375cbfdd9c04b236cbab0d3f39a128 (patch)
tree676c16e7beafdb8c11311b41b2bc22014c99aad1 /functions.php
parent79070c8855e5f3b87484196d6ef607a05979bf6c (diff)
downloadmoehring-882c0eb89b375cbfdd9c04b236cbab0d3f39a128.tar.gz
integrates ghrss
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 9bd65e4..8a31111 100644
--- a/functions.php
+++ b/functions.php
@@ -23,3 +23,9 @@ function str_ends_with( $haystack, $needle) {
}
return substr($haystack, -$len) === $needle;
}
+
+function get_ghrss_feeds() {
+ require_once __DIR__ . '/views/tools/ghrss/ghrss.db.php';
+ $result = $db->query("SELECT name FROM language ORDER BY name;");
+ return $result->fetchAll();
+}