aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-04-22 12:31:09 +0200
committerGitHub <noreply@github.com>2019-04-22 12:31:09 +0200
commit786f35f2700d83687ef494b98e3dace37d268e1c (patch)
treef18c3fbae17445c29b031a5405a2779bba314b32 /application
parente7ffbb7ed1c9e771b40df2d8911daedd6e7c5198 (diff)
parent8d03f705ebbc891e216d509d4de0419842ebd317 (diff)
downloadShaarli-786f35f2700d83687ef494b98e3dace37d268e1c.tar.gz
Shaarli-786f35f2700d83687ef494b98e3dace37d268e1c.tar.zst
Shaarli-786f35f2700d83687ef494b98e3dace37d268e1c.zip
Merge pull request #1276 from ArthurHoaro/feature/bulk-visibility
Bulk action: set visibility
Diffstat (limited to 'application')
-rw-r--r--application/Router.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/Router.php b/application/Router.php
index 05877acd..d7187487 100644
--- a/application/Router.php
+++ b/application/Router.php
@@ -38,6 +38,8 @@ class Router
38 38
39 public static $PAGE_DELETELINK = 'delete_link'; 39 public static $PAGE_DELETELINK = 'delete_link';
40 40
41 public static $PAGE_CHANGE_VISIBILITY = 'change_visibility';
42
41 public static $PAGE_PINLINK = 'pin'; 43 public static $PAGE_PINLINK = 'pin';
42 44
43 public static $PAGE_EXPORT = 'export'; 45 public static $PAGE_EXPORT = 'export';
@@ -149,6 +151,10 @@ class Router
149 return self::$PAGE_DELETELINK; 151 return self::$PAGE_DELETELINK;
150 } 152 }
151 153
154 if (isset($get[self::$PAGE_CHANGE_VISIBILITY])) {
155 return self::$PAGE_CHANGE_VISIBILITY;
156 }
157
152 if (startsWith($query, 'do=' . self::$PAGE_PINLINK)) { 158 if (startsWith($query, 'do=' . self::$PAGE_PINLINK)) {
153 return self::$PAGE_PINLINK; 159 return self::$PAGE_PINLINK;
154 } 160 }