aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-11-22 17:53:24 +0100
committerVirtualTam <virtualtam@flibidi.net>2015-11-22 17:53:24 +0100
commitc07e166aa265184db16e8c82ce18a98596cfb3c9 (patch)
tree8747425b4388df54296a9aa104d6fa52b623a1c9 /application
parentda08b65de18aec252347f954c7560377cd8ea742 (diff)
parent8f8113b94beb46f5deb84e393a95237f59969bbb (diff)
downloadShaarli-c07e166aa265184db16e8c82ce18a98596cfb3c9.tar.gz
Shaarli-c07e166aa265184db16e8c82ce18a98596cfb3c9.tar.zst
Shaarli-c07e166aa265184db16e8c82ce18a98596cfb3c9.zip
Merge pull request #376 from ArthurHoaro/opensearch
Fixes #176 - Add opensearch functionality
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 82b2b858..1e6a3983 100644
--- a/application/Router.php
+++ b/application/Router.php
@@ -29,6 +29,8 @@ class Router
29 29
30 public static $PAGE_IMPORT = 'import'; 30 public static $PAGE_IMPORT = 'import';
31 31
32 public static $PAGE_OPENSEARCH = 'opensearch';
33
32 public static $PAGE_LINKLIST = 'linklist'; 34 public static $PAGE_LINKLIST = 'linklist';
33 35
34 /** 36 /**
@@ -63,6 +65,10 @@ class Router
63 return self::$PAGE_TAGCLOUD; 65 return self::$PAGE_TAGCLOUD;
64 } 66 }
65 67
68 if (startswith($query, 'do='. self::$PAGE_OPENSEARCH)) {
69 return self::$PAGE_OPENSEARCH;
70 }
71
66 // At this point, only loggedin pages. 72 // At this point, only loggedin pages.
67 if (!$loggedIn) { 73 if (!$loggedIn) {
68 return self::$PAGE_LINKLIST; 74 return self::$PAGE_LINKLIST;