aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-08-13 13:24:01 +0200
committerGitHub <noreply@github.com>2018-08-13 13:24:01 +0200
commitf28b73b21f705102f8536cd16ea28122aa870e49 (patch)
treecdb96db5450703ac52c6b30ac27c3bd19657102a
parent83eab29ef8e08948dcc3574c3b463c5af91eb53a (diff)
parentb54faf4fd9b92ff7f950dd0f77a09dabf3018e9a (diff)
downloadShaarli-f28b73b21f705102f8536cd16ea28122aa870e49.tar.gz
Shaarli-f28b73b21f705102f8536cd16ea28122aa870e49.tar.zst
Shaarli-f28b73b21f705102f8536cd16ea28122aa870e49.zip
Merge pull request #1209 from ArthurHoaro/hotfix/history-delete
History: fix a bug on bulk deletion where only one deletion were regiā€¦
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 4b86a3e2..8f6ee50a 100644
--- a/index.php
+++ b/index.php
@@ -1236,10 +1236,10 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
1236 $id = (int) escape($id); 1236 $id = (int) escape($id);
1237 $link = $LINKSDB[$id]; 1237 $link = $LINKSDB[$id];
1238 $pluginManager->executeHooks('delete_link', $link); 1238 $pluginManager->executeHooks('delete_link', $link);
1239 $history->deleteLink($link);
1239 unset($LINKSDB[$id]); 1240 unset($LINKSDB[$id]);
1240 } 1241 }
1241 $LINKSDB->save($conf->get('resource.page_cache')); // save to disk 1242 $LINKSDB->save($conf->get('resource.page_cache')); // save to disk
1242 $history->deleteLink($link);
1243 1243
1244 // If we are called from the bookmarklet, we must close the popup: 1244 // If we are called from the bookmarklet, we must close the popup:
1245 if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo '<script>self.close();</script>'; exit; } 1245 if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo '<script>self.close();</script>'; exit; }