aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-12-08 21:41:31 +0100
committerVirtualTam <virtualtam@flibidi.net>2015-12-08 21:41:31 +0100
commit6ff636cdd458056aa0149ff7db65624749b809c0 (patch)
tree7b0600e13fadcdecc19b110051e63d1527b616ef /application
parentaca447a71353b304c6180c10b0bee18cfacbc4f9 (diff)
parent38603b2450e983edfab5770bd3dd681c6073f898 (diff)
downloadShaarli-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')
-rw-r--r--application/Router.php6
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;