X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUpdater.php;h=f07e76978f170f7c8839f399c9d9c93e319d6384;hb=refs%2Fpull%2F1089%2Fhead;hp=bc859536f61a846d9a5923e03f35ea33e9fae77d;hpb=0926d263902c184bd4f4c2036cb8ee90f81c5060;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Updater.php b/application/Updater.php index bc859536..f07e7697 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -443,6 +443,19 @@ class Updater 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; } }