]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Updater.php
Merge pull request #1062 from ArthurHoaro/feature/pages-title
[github/shaarli/Shaarli.git] / application / Updater.php
index bc859536f61a846d9a5923e03f35ea33e9fae77d..f07e76978f170f7c8839f399c9d9c93e319d6384 100644 (file)
@@ -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;
     }
 }