From: ArthurHoaro Date: Wed, 10 May 2017 16:25:41 +0000 (+0200) Subject: Merge pull request #869 from ArthurHoaro/cleanup/psh-dead-code X-Git-Tag: v0.9.1~1^2~33 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=3aa7aa0ef0c1351815a827777e752615f5781545;hp=6b32719fafc02ea14f67e990b38ad5b79afec4b4;p=github%2Fshaarli%2FShaarli.git Merge pull request #869 from ArthurHoaro/cleanup/psh-dead-code PubSubHub: remove dead code --- 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) } $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