mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:55:55 +00:00
reference pubsubhubbub classes using their namespace
This commit is contained in:
@@ -308,7 +308,7 @@ class API extends Handler {
|
|||||||
"/public.php?op=rss&id=-2&key=" .
|
"/public.php?op=rss&id=-2&key=" .
|
||||||
get_feed_access_key(-2, false);
|
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);
|
$pubsub_result = $p->publish_update($rss_link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ class RPC extends Handler_Protected {
|
|||||||
"/public.php?op=rss&id=-2&key=" .
|
"/public.php?op=rss&id=-2&key=" .
|
||||||
get_feed_access_key(-2, false);
|
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);
|
$pubsub_result = $p->publish_update($rss_link);
|
||||||
}
|
}
|
||||||
@@ -624,7 +624,7 @@ class RPC extends Handler_Protected {
|
|||||||
"/public.php?op=rss&id=-2&key=" .
|
"/public.php?op=rss&id=-2&key=" .
|
||||||
get_feed_access_key(-2, false);
|
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);
|
/* $pubsub_result = */ $p->publish_update($rss_link);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -600,7 +600,7 @@
|
|||||||
$callback_url = get_self_url_prefix() .
|
$callback_url = get_self_url_prefix() .
|
||||||
"/public.php?op=pubsub&id=$feed";
|
"/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);
|
$rc = $s->subscribe($feed_self_url);
|
||||||
|
|
||||||
@@ -999,7 +999,7 @@
|
|||||||
"/public.php?op=rss&id=-2&key=" .
|
"/public.php?op=rss&id=-2&key=" .
|
||||||
get_feed_access_key(-2, false, $owner_uid);
|
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);
|
/* $pubsub_result = */ $p->publish_update($rss_link);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user