summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-11 09:07:49 +0300
committerAndrew Dolgov <[email protected]>2017-05-11 09:07:49 +0300
commitc114a2596f15bedafa0acae68e8d48ad336129c3 (patch)
tree68fbcff79a50ed272860944d68117cac0d058497 /classes
parent6c34ef612c09bcd1e3e879c554dfeae127bb3046 (diff)
move add_feed_url() to pref_feeds
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/pref/feeds.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index 78e0f2f2b..002d56aeb 100755
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -1489,7 +1489,7 @@ class Pref_Feeds extends Handler_Protected {
print "<button onclick='window.navigator.registerContentHandler(" .
"\"application/vnd.mozilla.maybe.feed\", " .
- "\"" . add_feed_url() . "\", " . " \"Tiny Tiny RSS\")'>" .
+ "\"" . $this->subscribe_to_feed_url() . "\", " . " \"Tiny Tiny RSS\")'>" .
__('Click here to register this site as a feed reader.') .
"</button>";
@@ -1972,4 +1972,11 @@ class Pref_Feeds extends Handler_Protected {
print (int) $this->dbh->fetch_result($result, 0, "num_inactive");
}
+
+ static function subscribe_to_feed_url() {
+ $url_path = get_self_url_prefix() .
+ "/public.php?op=subscribe&feed_url=%s";
+ return $url_path;
+ }
+
} \ No newline at end of file