From 38603b2450e983edfab5770bd3dd681c6073f898 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 7 Dec 2015 11:25:11 +0100 Subject: Fixes #403: build the daily page through renderPage() * new entry in the Router for daily page. * add an always displayed button in demo_plugin --- application/Router.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application') 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 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; -- cgit v1.2.3