]> git.wh0rd.org Git - tt-rss.git/commitdiff
reference pubsubhubbub classes using their namespace
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 23 Jan 2017 05:20:46 +0000 (08:20 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 23 Jan 2017 05:20:46 +0000 (08:20 +0300)
classes/api.php
classes/rpc.php
include/rssfuncs.php

index da164aca1480ac1838f2fae8dea4a0da211a0c0c..c43a78ebee686b81939ab95b3ea828b5a734a969 100644 (file)
@@ -308,7 +308,7 @@ class API extends Handler {
                                                "/public.php?op=rss&id=-2&key=" .
                                                get_feed_access_key(-2, false);
 
-                                       $p = new Publisher(PUBSUBHUBBUB_HUB);
+                                       $p = new pubsubhubbub\publisher\Publisher(PUBSUBHUBBUB_HUB);
                                        $pubsub_result = $p->publish_update($rss_link);
                                }
                        }
index 9eb8dbd70e3285c19c02fa6539a78a64fbb5f5ca..2a92eadbd3b607f2703d90c36d58011503e1f73c 100755 (executable)
@@ -281,7 +281,7 @@ class RPC extends Handler_Protected {
                                "/public.php?op=rss&id=-2&key=" .
                                get_feed_access_key(-2, false);
 
-                       $p = new Publisher(PUBSUBHUBBUB_HUB);
+                       $p = new pubsubhubbub\publisher\Publisher(PUBSUBHUBBUB_HUB);
 
                        $pubsub_result = $p->publish_update($rss_link);
                }
@@ -624,7 +624,7 @@ class RPC extends Handler_Protected {
                                "/public.php?op=rss&id=-2&key=" .
                                get_feed_access_key(-2, false);
 
-                       $p = new Publisher(PUBSUBHUBBUB_HUB);
+                       $p = new pubsubhubbub\publisher\Publisher(PUBSUBHUBBUB_HUB);
 
                        /* $pubsub_result = */ $p->publish_update($rss_link);
                }
index fbb26ef9086cfe5411347e6453d1d248a1b0eda0..fd4a10f13fea21171c8f01c72b3415c92860529b 100644 (file)
                                        $callback_url = get_self_url_prefix() .
                                                "/public.php?op=pubsub&id=$feed";
 
-                                       $s = new Subscriber($feed_hub_url, $callback_url);
+                                       $s = new Pubsubhubbub\Subscriber\Subscriber($feed_hub_url, $callback_url);
 
                                        $rc = $s->subscribe($feed_self_url);
 
                                                                "/public.php?op=rss&id=-2&key=" .
                                                                get_feed_access_key(-2, false, $owner_uid);
 
-                                                       $p = new Publisher(PUBSUBHUBBUB_HUB);
+                                                       $p = new pubsubhubbub\publisher\Publisher(PUBSUBHUBBUB_HUB);
 
                                                        /* $pubsub_result = */ $p->publish_update($rss_link);
                                                }