]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Router.php
Fixes #176 - Add opensearch functionality
[github/shaarli/Shaarli.git] / application / Router.php
index 82b2b8582a062240b11f7707daedbe9d41f6721d..1e6a3983231f9a9eff01abb1e88b8dd63a4717b9 100644 (file)
@@ -29,6 +29,8 @@ class Router
 
     public static $PAGE_IMPORT = 'import';
 
+    public static $PAGE_OPENSEARCH = 'opensearch';
+
     public static $PAGE_LINKLIST = 'linklist';
 
     /**
@@ -63,6 +65,10 @@ class Router
             return self::$PAGE_TAGCLOUD;
         }
 
+        if (startswith($query, 'do='. self::$PAGE_OPENSEARCH)) {
+            return self::$PAGE_OPENSEARCH;
+        }
+
         // At this point, only loggedin pages.
         if (!$loggedIn) {
             return self::$PAGE_LINKLIST;