diff options
author | Andrew Dolgov <[email protected]> | 2021-02-15 16:41:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-15 16:41:52 +0300 |
commit | bd3c38de849330b3ed28df05c1220c631c103628 (patch) | |
tree | fb78256da548b246ed750454a13c18ce09ac364c /plugins | |
parent | cfad740c9916132dced9f46826313da6f7b7dd1d (diff) |
move bookmarklet-related subscribe_to_feed_url to bookmarklet plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/bookmarklets/init.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/bookmarklets/init.php b/plugins/bookmarklets/init.php index fa1bb8cf6..9e0f8f348 100644 --- a/plugins/bookmarklets/init.php +++ b/plugins/bookmarklets/init.php @@ -16,6 +16,12 @@ class Bookmarklets extends Plugin { $host->add_hook($host::HOOK_PREFS_TAB, $this); } + private function subscribe_to_feed_url() { + $url_path = get_self_url_prefix() . + "/public.php?op=subscribe&feed_url=%s"; + return $url_path; + } + function hook_prefs_tab($args) { if ($args == "prefFeeds") { @@ -24,7 +30,7 @@ class Bookmarklets extends Plugin { print "<h3>" . __("Drag the link below to your browser toolbar, open the feed you're interested in in your browser and click on the link to subscribe to it.") . "</h3>"; - $bm_subscribe_url = str_replace('%s', '', Pref_Feeds::subscribe_to_feed_url()); + $bm_subscribe_url = str_replace('%s', '', $this->subscribe_to_feed_url()); $confirm_str = str_replace("'", "\'", __('Subscribe to %s in Tiny Tiny RSS?')); |