aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2017-01-04 16:35:29 +0100
committerGitHub <noreply@github.com>2017-01-04 16:35:29 +0100
commitfc11ab2f290a3712b766d78fdbcd354625a35d0a (patch)
treeb0c045269ae900ad131bb6762a56c0d13369f6cb /application
parent061f04fba06d2a78246de747e2bdd5625fc22400 (diff)
parentf4ebd5fed20b29c4fb580983b4be7bd0a52151b9 (diff)
downloadShaarli-fc11ab2f290a3712b766d78fdbcd354625a35d0a.tar.gz
Shaarli-fc11ab2f290a3712b766d78fdbcd354625a35d0a.tar.zst
Shaarli-fc11ab2f290a3712b766d78fdbcd354625a35d0a.zip
Merge pull request #682 from ArthurHoaro/delete-button
Bugfixes on link deletion, and use a GET form
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 caed4a28..c9a51912 100644
--- a/application/Router.php
+++ b/application/Router.php
@@ -31,6 +31,8 @@ class Router
31 31
32 public static $PAGE_EDITLINK = 'edit_link'; 32 public static $PAGE_EDITLINK = 'edit_link';
33 33
34 public static $PAGE_DELETELINK = 'delete_link';
35
34 public static $PAGE_EXPORT = 'export'; 36 public static $PAGE_EXPORT = 'export';
35 37
36 public static $PAGE_IMPORT = 'import'; 38 public static $PAGE_IMPORT = 'import';
@@ -120,6 +122,10 @@ class Router
120 return self::$PAGE_EDITLINK; 122 return self::$PAGE_EDITLINK;
121 } 123 }
122 124
125 if (isset($get['delete_link'])) {
126 return self::$PAGE_DELETELINK;
127 }
128
123 if (startsWith($query, 'do='. self::$PAGE_EXPORT)) { 129 if (startsWith($query, 'do='. self::$PAGE_EXPORT)) {
124 return self::$PAGE_EXPORT; 130 return self::$PAGE_EXPORT;
125 } 131 }