diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-08-13 13:18:31 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-08-13 13:18:31 +0200 |
commit | b54faf4fd9b92ff7f950dd0f77a09dabf3018e9a (patch) | |
tree | cdb96db5450703ac52c6b30ac27c3bd19657102a /index.php | |
parent | 83eab29ef8e08948dcc3574c3b463c5af91eb53a (diff) | |
download | Shaarli-b54faf4fd9b92ff7f950dd0f77a09dabf3018e9a.tar.gz Shaarli-b54faf4fd9b92ff7f950dd0f77a09dabf3018e9a.tar.zst Shaarli-b54faf4fd9b92ff7f950dd0f77a09dabf3018e9a.zip |
History: fix a bug on bulk deletion where only one deletion were registred
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |