aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-10 18:25:41 +0200
committerGitHub <noreply@github.com>2017-05-10 18:25:41 +0200
commit3aa7aa0ef0c1351815a827777e752615f5781545 (patch)
treeb1c316904c80ac6e8828c0075a5bf3d12bbc82ae
parent6b32719fafc02ea14f67e990b38ad5b79afec4b4 (diff)
parent033cf2a1e5eca144098fa0a150ded97128f79305 (diff)
downloadShaarli-3aa7aa0ef0c1351815a827777e752615f5781545.tar.gz
Shaarli-3aa7aa0ef0c1351815a827777e752615f5781545.tar.zst
Shaarli-3aa7aa0ef0c1351815a827777e752615f5781545.zip
Merge pull request #869 from ArthurHoaro/cleanup/psh-dead-code
PubSubHub: remove dead code
-rw-r--r--index.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/index.php b/index.php
index ab1e30da..468dd091 100644
--- a/index.php
+++ b/index.php
@@ -225,27 +225,6 @@ function setup_login_state($conf)
225} 225}
226$userIsLoggedIn = setup_login_state($conf); 226$userIsLoggedIn = setup_login_state($conf);
227 227
228/**
229 * PubSubHubbub protocol support (if enabled) [UNTESTED]
230 * (Source: http://aldarone.fr/les-flux-rss-shaarli-et-pubsubhubbub/ )
231 *
232 * @param ConfigManager $conf Configuration Manager instance.
233 */
234function pubsubhub($conf)
235{
236 $pshUrl = $conf->get('config.PUBSUBHUB_URL');
237 if (!empty($pshUrl))
238 {
239 include_once './publisher.php';
240 $p = new Publisher($pshUrl);
241 $topic_url = array (
242 index_url($_SERVER).'?do=atom',
243 index_url($_SERVER).'?do=rss'
244 );
245 $p->publish_update($topic_url);
246 }
247}
248
249// ------------------------------------------------------------------------------------------ 228// ------------------------------------------------------------------------------------------
250// Session management 229// Session management
251 230