]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Router.php
Fixes #403: build the daily page through renderPage()
[github/shaarli/Shaarli.git] / application / Router.php
index 1e6a3983231f9a9eff01abb1e88b8dd63a4717b9..0c813847b282162c40e61ae6a2e16e83a34d3508 100644 (file)
@@ -13,6 +13,8 @@ class Router
 
     public static $PAGE_TAGCLOUD = 'tagcloud';
 
+    public static $PAGE_DAILY = 'daily';
+
     public static $PAGE_TOOLS = 'tools';
 
     public static $PAGE_CHANGEPASSWORD = 'changepasswd';
@@ -69,6 +71,10 @@ class Router
             return self::$PAGE_OPENSEARCH;
         }
 
+        if (startsWith($query, 'do='. self::$PAGE_DAILY)) {
+            return self::$PAGE_DAILY;
+        }
+
         // At this point, only loggedin pages.
         if (!$loggedIn) {
             return self::$PAGE_LINKLIST;