diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 1a5e3d206..47e5689ec 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1391,10 +1391,10 @@ class Pref_Feeds extends Handler_Protected { $rss_url = htmlspecialchars(get_self_url_prefix() . "/public.php?op=rss&id=-2&view-mode=all_articles");; - print " "; - - print " + "; PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB_SECTION, "prefFeedsPublishedGenerated"); diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index 038a2981d..18250bbb8 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -387,17 +387,19 @@ const CommonDialogs = { Notify.close(); } catch (e) { - this.Error.report(e); + App.Error.report(e); } }); }, - generatedFeed: function(feed, is_cat, rss_url) { + generatedFeed: function(feed, is_cat, rss_url, feed_title) { Notify.progress("Loading, please wait...", true); xhrJson("backend.php", {op: "pref-feeds", method: "getFeedKey", id: feed, is_cat: is_cat}, (reply) => { try { - const feed_title = Feeds.getName(feed, is_cat); + if (!feed_title && typeof Feeds != "undefined") + feed_title = Feeds.getName(feed, is_cat); + const secret_url = rss_url + "&key=" + encodeURIComponent(reply.link); const dialog = new fox.SingleUseDialog({ @@ -428,7 +430,7 @@ const CommonDialogs = { Notify.close(); } catch (e) { - this.Error.report(e); + App.Error.report(e); } }); },