1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-07 03:09:15 +00:00

subscribe dialog: do not report errors via alert()

fetch_file_contents: reset all globals on start, return error message body when not using curl
subscribe_to_feed: report if cloudflare is in the error message
This commit is contained in:
Andrew Dolgov
2017-01-28 12:45:49 +03:00
parent 80fbc1fdc4
commit 24c7e4132d
3 changed files with 36 additions and 7 deletions

View File

@@ -1030,6 +1030,8 @@ class Feeds extends Handler_Protected {
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"addfeed\">";
print "<div id='fadd_error_message' style='display : none' class='alert alert-danger'></div>";
print "<div id='fadd_multiple_notify' style='display : none'>";
print_notice("Provided URL is a HTML page referencing multiple feeds, please select required feed from the dropdown menu below.");
print "<p></div>";