reference pubsubhubbub classes using their namespace

This commit is contained in:
Andrew Dolgov 2017-01-23 08:20:46 +03:00
parent 141df0c4cf
commit cb3f877303
3 changed files with 5 additions and 5 deletions

View 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);
}
}

View File

@ -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);
}

View File

@ -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);
}