X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUpdater.php;h=f07e76978f170f7c8839f399c9d9c93e319d6384;hb=9d4736a3e95332198896f97ecc8a83abb0cbe85b;hp=723a7a81dac89bbb1cc57d548c762ce698a4ae8c;hpb=d8acf8550480694d050091e270a06c01e7b313f0;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Updater.php b/application/Updater.php index 723a7a81..f07e7697 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -436,6 +436,27 @@ class Updater } return true; } + + /** + * Save the datastore -> the link order is now applied when links are saved. + */ + public function updateMethodReorderDatastore() + { + $this->linkDB->save($this->conf->get('resource.page_cache')); + return true; + } + + /** + * Change privateonly session key to visibility. + */ + public function updateMethodVisibilitySession() + { + if (isset($_SESSION['privateonly'])) { + unset($_SESSION['privateonly']); + $_SESSION['visibility'] = 'private'; + } + return true; + } } /**