diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-08-02 11:55:49 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-12-20 11:41:24 +0100 |
commit | db90dfcbbc406b50381f17a72f24095fee91bb09 (patch) | |
tree | ebe39650f12a80c09f8fae1b87a9d5c4c4141466 /index.php | |
parent | 085efc33cc0cadaed0c01d926604e219e1d44365 (diff) | |
download | Shaarli-db90dfcbbc406b50381f17a72f24095fee91bb09.tar.gz Shaarli-db90dfcbbc406b50381f17a72f24095fee91bb09.tar.zst Shaarli-db90dfcbbc406b50381f17a72f24095fee91bb09.zip |
Move PubSubHubbub code as a default plugin
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -910,10 +910,6 @@ function renderPage($conf, $pluginManager, $LINKSDB) | |||
910 | $feedGenerator->setLocale(strtolower(setlocale(LC_COLLATE, 0))); | 910 | $feedGenerator->setLocale(strtolower(setlocale(LC_COLLATE, 0))); |
911 | $feedGenerator->setHideDates($conf->get('privacy.hide_timestamps') && !isLoggedIn()); | 911 | $feedGenerator->setHideDates($conf->get('privacy.hide_timestamps') && !isLoggedIn()); |
912 | $feedGenerator->setUsePermalinks(isset($_GET['permalinks']) || !$conf->get('feed.rss_permalinks')); | 912 | $feedGenerator->setUsePermalinks(isset($_GET['permalinks']) || !$conf->get('feed.rss_permalinks')); |
913 | $pshUrl = $conf->get('config.PUBSUBHUB_URL'); | ||
914 | if (!empty($pshUrl)) { | ||
915 | $feedGenerator->setPubsubhubUrl($pshUrl); | ||
916 | } | ||
917 | $data = $feedGenerator->buildData(); | 913 | $data = $feedGenerator->buildData(); |
918 | 914 | ||
919 | // Process plugin hook. | 915 | // Process plugin hook. |
@@ -1289,7 +1285,6 @@ function renderPage($conf, $pluginManager, $LINKSDB) | |||
1289 | 1285 | ||
1290 | $LINKSDB[$id] = $link; | 1286 | $LINKSDB[$id] = $link; |
1291 | $LINKSDB->save($conf->get('resource.page_cache')); | 1287 | $LINKSDB->save($conf->get('resource.page_cache')); |
1292 | pubsubhub($conf); | ||
1293 | 1288 | ||
1294 | // If we are called from the bookmarklet, we must close the popup: | 1289 | // If we are called from the bookmarklet, we must close the popup: |
1295 | if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { | 1290 | if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { |