From 8f8113b94beb46f5deb84e393a95237f59969bbb Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 13 Nov 2015 19:32:35 +0100 Subject: Fixes #176 - Add opensearch functionality * add a new page in Router: do=opensearch which displays the opensearch plugin * using base64 compressed image to avoid issue encountered with HTTPS --- application/Router.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application') 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; -- cgit v1.2.3