]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Router.php
Bugfixes on link deletion, and use a GET form
[github/shaarli/Shaarli.git] / application / Router.php
index 2c3934b0079d909af6522ad2b4464ea3a1dedad2..c9a519120eecf3274c1b66a7df5f4e2deacbec95 100644 (file)
@@ -31,6 +31,8 @@ class Router
 
     public static $PAGE_EDITLINK = 'edit_link';
 
+    public static $PAGE_DELETELINK = 'delete_link';
+
     public static $PAGE_EXPORT = 'export';
 
     public static $PAGE_IMPORT = 'import';
@@ -120,6 +122,10 @@ class Router
             return self::$PAGE_EDITLINK;
         }
 
+        if (isset($get['delete_link'])) {
+            return self::$PAGE_DELETELINK;
+        }
+
         if (startsWith($query, 'do='. self::$PAGE_EXPORT)) {
             return self::$PAGE_EXPORT;
         }
@@ -138,4 +144,4 @@ class Router
 
         return self::$PAGE_LINKLIST;
     }
-}
\ No newline at end of file
+}