diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-12-07 11:25:11 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-12-08 15:51:49 +0100 |
commit | 38603b2450e983edfab5770bd3dd681c6073f898 (patch) | |
tree | 0c11b70421847e8886fa1eaf5ae8486fd35ff0f2 /application | |
parent | 4c3df9aa1250df86a4897169a8d4be0d33b2c9f6 (diff) | |
download | Shaarli-38603b2450e983edfab5770bd3dd681c6073f898.tar.gz Shaarli-38603b2450e983edfab5770bd3dd681c6073f898.tar.zst Shaarli-38603b2450e983edfab5770bd3dd681c6073f898.zip |
Fixes #403: build the daily page through renderPage()
* new entry in the Router for daily page.
* add an always displayed button in demo_plugin
Diffstat (limited to 'application')
-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; |