mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 03:31:33 +00:00
store last feed update error in the database (SCHEMA UPDATED), display warning box in preferences on feed update error
This commit is contained in:
21
backend.php
21
backend.php
@@ -815,6 +815,27 @@
|
||||
}
|
||||
}
|
||||
|
||||
$result = db_query($link, "SELECT id,title,feed_url,last_error
|
||||
FROM ttrss_feeds WHERE last_error != ''");
|
||||
|
||||
if (db_num_rows($result) > 0) {
|
||||
|
||||
print "<div class=\"warning\">";
|
||||
|
||||
print "<b>Feeds with update errors:</b>";
|
||||
|
||||
print "<ul class=\"nomarks\">";
|
||||
|
||||
while ($line = db_fetch_assoc($result)) {
|
||||
print "<li>" . $line["title"] . " (" . $line["feed_url"] . "): " .
|
||||
$line["last_error"];
|
||||
}
|
||||
|
||||
print "</ul>";
|
||||
print "</div>";
|
||||
|
||||
}
|
||||
|
||||
print "<table class=\"prefAddFeed\"><tr>
|
||||
<td><input id=\"fadd_link\"></td>
|
||||
<td colspan=\"4\" align=\"right\">
|
||||
|
||||
Reference in New Issue
Block a user