From 751aaefec215e9e55d0fb4d5e4c25f398c3cc8d3 Mon Sep 17 00:00:00 2001 From: Seb Sauvage Date: Fri, 18 Nov 2011 15:24:26 +0100 Subject: [PATCH] Version 0.0.30 beta: - Added: Now links also have a small delete button in list (after the edit button). - Corrected: Moved the call to PubSubHub. --- index.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 01dae52b..88be084b 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ savedb(); // save to disk - pubsubhub(); invalidateCaches(); echo ''; exit; @@ -1071,6 +1070,7 @@ HTML; if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title. $LINKSDB[$linkdate] = $link; $LINKSDB->savedb(); // save to disk + pubsubhub(); invalidateCaches(); // If we are called from the bookmarklet, we must close the popup: @@ -1406,6 +1406,7 @@ function templateLinkList() $i = ($page-1)*$_SESSION['LINKS_PER_PAGE']; // Start index. $end = $i+$_SESSION['LINKS_PER_PAGE']; $redir = empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']; // optional redirector URL + $token = ''; if (isLoggedIn()) $token=getToken(); while ($i<$end && $i'; + if (isLoggedIn()) + { + $actions='
'; + $actions.='
'; + $actions.='
'; + } $tags=''; if ($link['tags']!='') { -- 2.41.0