diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-02-02 19:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 19:22:37 +0100 |
commit | bc3ce7ec2a652eec1441774958050cf83105560a (patch) | |
tree | add0bcb98c4051bde67badf202a3f5bcaeb850a3 /application/Updater.php | |
parent | 17b4baedec3902a1549451ede36f914000019797 (diff) | |
parent | d2f6d909e529898c43b32defb890ec8e2d6b72f5 (diff) | |
download | Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.tar.gz Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.tar.zst Shaarli-bc3ce7ec2a652eec1441774958050cf83105560a.zip |
Merge pull request #1038 from ArthurHoaro/feature/public-only-filter
Add a filter to only display public links
Diffstat (limited to 'application/Updater.php')
-rw-r--r-- | application/Updater.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/application/Updater.php b/application/Updater.php index 8d2bd577..f07e7697 100644 --- a/application/Updater.php +++ b/application/Updater.php | |||
@@ -445,6 +445,18 @@ class Updater | |||
445 | $this->linkDB->save($this->conf->get('resource.page_cache')); | 445 | $this->linkDB->save($this->conf->get('resource.page_cache')); |
446 | return true; | 446 | return true; |
447 | } | 447 | } |
448 | |||
449 | /** | ||
450 | * Change privateonly session key to visibility. | ||
451 | */ | ||
452 | public function updateMethodVisibilitySession() | ||
453 | { | ||
454 | if (isset($_SESSION['privateonly'])) { | ||
455 | unset($_SESSION['privateonly']); | ||
456 | $_SESSION['visibility'] = 'private'; | ||
457 | } | ||
458 | return true; | ||
459 | } | ||
448 | } | 460 | } |
449 | 461 | ||
450 | /** | 462 | /** |