From: Andrew Dolgov Date: Mon, 23 Jan 2017 05:20:46 +0000 (+0300) Subject: reference pubsubhubbub classes using their namespace X-Git-Tag: 17.4~80 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=cb3f87730380fa7f267aab60875be36456262452 reference pubsubhubbub classes using their namespace --- diff --git a/classes/api.php b/classes/api.php index da164aca..c43a78eb 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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); } } diff --git a/classes/rpc.php b/classes/rpc.php index 9eb8dbd7..2a92eadb 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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); } diff --git a/include/rssfuncs.php b/include/rssfuncs.php index fbb26ef9..fd4a10f1 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -600,7 +600,7 @@ $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); @@ -999,7 +999,7 @@ "/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); }