From d4c925819b9d85a00520e413a90cfbcd61a1c667 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Feb 2021 23:12:49 +0300 Subject: [PATCH] pref-feeds: load error button via xhr --- classes/pref/feeds.php | 21 +++++---------------- js/PrefFeedTree.js | 7 +++++++ themes/compact.css | 2 +- themes/compact_night.css | 2 +- themes/light.css | 2 +- themes/light/prefs.less | 2 +- themes/night.css | 2 +- themes/night_blue.css | 2 +- 8 files changed, 18 insertions(+), 22 deletions(-) diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index b9967e77f..72a8344ad 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1198,22 +1198,10 @@ class Pref_Feeds extends Handler_Protected { } private function index_feeds() { - $sth = $this->pdo->prepare("SELECT COUNT(id) AS num_errors - FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ?"); - $sth->execute([$_SESSION['uid']]); - - if ($row = $sth->fetch()) { - $num_errors = $row["num_errors"]; - } else { - $num_errors = 0; - } - - if ($num_errors > 0) { - $error_button = ""; - } else { - $error_button = ""; - } + $error_button = ""; $inactive_button = "