aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-10-20 21:19:51 +0200
committerVirtualTam <virtualtam@flibidi.net>2016-10-20 21:33:40 +0200
commitf21abf329234ae4d5a1d56c5a9dd0bc11f80bac8 (patch)
tree452d965ce383fde4672ecd1ac5613e38c57623cb /index.php
parent628b97cbdf276785eb9ff4f7a124e81e67d2f76c (diff)
downloadShaarli-f21abf329234ae4d5a1d56c5a9dd0bc11f80bac8.tar.gz
Shaarli-f21abf329234ae4d5a1d56c5a9dd0bc11f80bac8.tar.zst
Shaarli-f21abf329234ae4d5a1d56c5a9dd0bc11f80bac8.zip
LinkDB: update datastore method names
Relates to https://github.com/shaarli/Shaarli/issues/95 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 6d712aee..84282b8d 100644
--- a/index.php
+++ b/index.php
@@ -1211,7 +1211,7 @@ function renderPage($conf, $pluginManager)
1211 $value['tags']=trim(implode(' ',$tags)); 1211 $value['tags']=trim(implode(' ',$tags));
1212 $LINKSDB[$key]=$value; 1212 $LINKSDB[$key]=$value;
1213 } 1213 }
1214 $LINKSDB->savedb($conf->get('resource.page_cache')); 1214 $LINKSDB->save($conf->get('resource.page_cache'));
1215 echo '<script>alert("Tag was removed from '.count($linksToAlter).' links.");document.location=\'?\';</script>'; 1215 echo '<script>alert("Tag was removed from '.count($linksToAlter).' links.");document.location=\'?\';</script>';
1216 exit; 1216 exit;
1217 } 1217 }
@@ -1228,7 +1228,7 @@ function renderPage($conf, $pluginManager)
1228 $value['tags']=trim(implode(' ',$tags)); 1228 $value['tags']=trim(implode(' ',$tags));
1229 $LINKSDB[$key]=$value; 1229 $LINKSDB[$key]=$value;
1230 } 1230 }
1231 $LINKSDB->savedb($conf->get('resource.page_cache')); // Save to disk. 1231 $LINKSDB->save($conf->get('resource.page_cache')); // Save to disk.
1232 echo '<script>alert("Tag was renamed in '.count($linksToAlter).' links.");document.location=\'?searchtags='.urlencode($_POST['totag']).'\';</script>'; 1232 echo '<script>alert("Tag was renamed in '.count($linksToAlter).' links.");document.location=\'?searchtags='.urlencode($_POST['totag']).'\';</script>';
1233 exit; 1233 exit;
1234 } 1234 }
@@ -1283,7 +1283,7 @@ function renderPage($conf, $pluginManager)
1283 $pluginManager->executeHooks('save_link', $link); 1283 $pluginManager->executeHooks('save_link', $link);
1284 1284
1285 $LINKSDB[$linkdate] = $link; 1285 $LINKSDB[$linkdate] = $link;
1286 $LINKSDB->savedb($conf->get('resource.page_cache')); 1286 $LINKSDB->save($conf->get('resource.page_cache'));
1287 pubsubhub($conf); 1287 pubsubhub($conf);
1288 1288
1289 // 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:
@@ -1325,7 +1325,7 @@ function renderPage($conf, $pluginManager)
1325 $pluginManager->executeHooks('delete_link', $LINKSDB[$linkdate]); 1325 $pluginManager->executeHooks('delete_link', $LINKSDB[$linkdate]);
1326 1326
1327 unset($LINKSDB[$linkdate]); 1327 unset($LINKSDB[$linkdate]);
1328 $LINKSDB->savedb('resource.page_cache'); // save to disk 1328 $LINKSDB->save('resource.page_cache'); // save to disk
1329 1329
1330 // If we are called from the bookmarklet, we must close the popup: 1330 // If we are called from the bookmarklet, we must close the popup:
1331 if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo '<script>self.close();</script>'; exit; } 1331 if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo '<script>self.close();</script>'; exit; }