]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
PubSubHub: remove dead code 869/head
authorArthurHoaro <arthur@hoa.ro>
Tue, 9 May 2017 16:26:34 +0000 (18:26 +0200)
committerArthurHoaro <arthur@hoa.ro>
Tue, 9 May 2017 16:26:34 +0000 (18:26 +0200)
index.php

index ab1e30da9154c91c610014a93eafff882a7a01d9..468dd091a54d020fb5184c95b4cb8fd398569495 100644 (file)
--- a/index.php
+++ b/index.php
@@ -225,27 +225,6 @@ function setup_login_state($conf)
 }
 $userIsLoggedIn = setup_login_state($conf);
 
-/**
- * PubSubHubbub protocol support (if enabled)  [UNTESTED]
- * (Source: http://aldarone.fr/les-flux-rss-shaarli-et-pubsubhubbub/ )
- *
- * @param ConfigManager $conf Configuration Manager instance.
- */
-function pubsubhub($conf)
-{
-    $pshUrl = $conf->get('config.PUBSUBHUB_URL');
-    if (!empty($pshUrl))
-    {
-        include_once './publisher.php';
-        $p = new Publisher($pshUrl);
-        $topic_url = array (
-            index_url($_SERVER).'?do=atom',
-            index_url($_SERVER).'?do=rss'
-        );
-        $p->publish_update($topic_url);
-    }
-}
-
 // ------------------------------------------------------------------------------------------
 // Session management