1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 06:35:55 +00:00

bookmarklets: cleanup some more markup

This commit is contained in:
Andrew Dolgov
2021-02-20 08:49:40 +03:00
parent b8786215dc
commit 545bcc3e4b
2 changed files with 55 additions and 49 deletions

View File

@@ -1099,6 +1099,18 @@ class Feeds extends Handler_Protected {
return false;
}
static function _find_by_url($feed_url, $owner_uid) {
$sth = Db::pdo()->prepare("SELECT id FROM ttrss_feeds WHERE
feed_url = ? AND owner_uid = ?");
$sth->execute([$feed_url, $owner_uid]);
if ($row = $sth->fetch()) {
return $row["id"];
}
return false;
}
static function _get_title($id, $cat = false) {
$pdo = Db::pdo();