diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-12-08 21:41:31 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-12-08 21:41:31 +0100 |
commit | 6ff636cdd458056aa0149ff7db65624749b809c0 (patch) | |
tree | 7b0600e13fadcdecc19b110051e63d1527b616ef /application/Router.php | |
parent | aca447a71353b304c6180c10b0bee18cfacbc4f9 (diff) | |
parent | 38603b2450e983edfab5770bd3dd681c6073f898 (diff) | |
download | Shaarli-6ff636cdd458056aa0149ff7db65624749b809c0.tar.gz Shaarli-6ff636cdd458056aa0149ff7db65624749b809c0.tar.zst Shaarli-6ff636cdd458056aa0149ff7db65624749b809c0.zip |
Merge pull request #407 from ArthurHoaro/daily-router
Fixes #402: build the daily page through renderPage()
Diffstat (limited to 'application/Router.php')
-rw-r--r-- | application/Router.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/application/Router.php b/application/Router.php index 1e6a3983..0c813847 100644 --- a/application/Router.php +++ b/application/Router.php | |||
@@ -13,6 +13,8 @@ class Router | |||
13 | 13 | ||
14 | public static $PAGE_TAGCLOUD = 'tagcloud'; | 14 | public static $PAGE_TAGCLOUD = 'tagcloud'; |
15 | 15 | ||
16 | public static $PAGE_DAILY = 'daily'; | ||
17 | |||
16 | public static $PAGE_TOOLS = 'tools'; | 18 | public static $PAGE_TOOLS = 'tools'; |
17 | 19 | ||
18 | public static $PAGE_CHANGEPASSWORD = 'changepasswd'; | 20 | public static $PAGE_CHANGEPASSWORD = 'changepasswd'; |
@@ -69,6 +71,10 @@ class Router | |||
69 | return self::$PAGE_OPENSEARCH; | 71 | return self::$PAGE_OPENSEARCH; |
70 | } | 72 | } |
71 | 73 | ||
74 | if (startsWith($query, 'do='. self::$PAGE_DAILY)) { | ||
75 | return self::$PAGE_DAILY; | ||
76 | } | ||
77 | |||
72 | // At this point, only loggedin pages. | 78 | // At this point, only loggedin pages. |
73 | if (!$loggedIn) { | 79 | if (!$loggedIn) { |
74 | return self::$PAGE_LINKLIST; | 80 | return self::$PAGE_LINKLIST; |