diff options
| author | horus | 2022-10-26 01:23:50 +0200 |
|---|---|---|
| committer | horus | 2022-10-26 01:23:50 +0200 |
| commit | 882c0eb89b375cbfdd9c04b236cbab0d3f39a128 (patch) | |
| tree | 676c16e7beafdb8c11311b41b2bc22014c99aad1 /functions.php | |
| parent | 79070c8855e5f3b87484196d6ef607a05979bf6c (diff) | |
| download | moehring-882c0eb89b375cbfdd9c04b236cbab0d3f39a128.tar.gz | |
integrates ghrss
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 6 |
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(); +} |
