diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-08-13 13:24:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-13 13:24:01 +0200 |
commit | f28b73b21f705102f8536cd16ea28122aa870e49 (patch) | |
tree | cdb96db5450703ac52c6b30ac27c3bd19657102a | |
parent | 83eab29ef8e08948dcc3574c3b463c5af91eb53a (diff) | |
parent | b54faf4fd9b92ff7f950dd0f77a09dabf3018e9a (diff) | |
download | Shaarli-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.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; } |