X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FRouter.php;h=1e6a3983231f9a9eff01abb1e88b8dd63a4717b9;hb=refs%2Fpull%2F376%2Fhead;hp=82b2b8582a062240b11f7707daedbe9d41f6721d;hpb=6fc14d530369740d27d6bd641369d4f5f5f04080;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Router.php b/application/Router.php index 82b2b858..1e6a3983 100644 --- a/application/Router.php +++ b/application/Router.php @@ -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;