summaryrefslogtreecommitdiff
path: root/classes/pref/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-11 21:42:38 +0300
committerAndrew Dolgov <[email protected]>2021-02-11 21:42:38 +0300
commit1a680d4eae7a5a6adb856f4db8adaa04ea4d64e3 (patch)
treef76f0109a793a8a7bc6f16d8c0f3876f928e3ed6 /classes/pref/feeds.php
parent848bc57f29ca4aa8357617a8470afb063748dd99 (diff)
publishedOPML: use client dialog
Diffstat (limited to 'classes/pref/feeds.php')
-rwxr-xr-xclasses/pref/feeds.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index 0b12bda13..cb2e79853 100755
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -1379,7 +1379,7 @@ class Pref_Feeds extends Handler_Protected {
" " .
__("Published OPML does not include your Tiny Tiny RSS settings, feeds that require authentication or feeds hidden from Popular feeds.") . "</p>";
- print "<button dojoType='dijit.form.Button' class='alt-primary' onclick=\"return App.displayDlg('".__("Public OPML URL")."','pubOPMLUrl')\">".
+ print "<button dojoType='dijit.form.Button' class='alt-primary' onclick=\"return CommonDialogs.publishedOPML()\">".
__('Display published OPML URL')."</button> ";
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB_SECTION, "prefFeedsOPML");
@@ -1706,13 +1706,17 @@ class Pref_Feeds extends Handler_Protected {
}
}
+ function getOPMLKey() {
+ print json_encode(["link" => OPML::opml_publish_url()]);
+ }
+
function regenOPMLKey() {
$this->update_feed_access_key('OPML:Publish',
- false, $_SESSION["uid"]);
+ false, $_SESSION["uid"]);
- $new_link = Opml::opml_publish_url();
+ $new_link = OPML::opml_publish_url();
- print json_encode(array("link" => $new_link));
+ print json_encode(["link" => $new_link]);
}
function regenFeedKey() {