From 3c94d07beba64154ecd707805fa87f2eaf5e4d02 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sat, 26 Jan 2013 16:53:23 +0000 Subject: store choices for recent changes and diff views in cookie (FS#2438 and FS#2700) Note: These changes don't work yet. The cookie is not set and deletes the old one. --- inc/actions.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'inc/actions.php') diff --git a/inc/actions.php b/inc/actions.php index 4083b0454..e0ad908b7 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -67,6 +67,22 @@ function act_dispatch(){ act_sitemap($ACT); } + //recent changes + if ($ACT == 'recent'){ + $show_changes = $INPUT->str('show_changes'); + if (!empty($show_changes)) { + set_doku_pref('show_changes', $show_changes); + } + } + + //diff + if ($ACT == 'diff'){ + $difftype = $INPUT->str('difftype'); + if (!empty($difftype)) { + set_doku_pref('difftype', $difftype); + } + } + //register if($ACT == 'register' && $INPUT->post->bool('save') && register()){ $ACT = 'login'; -- cgit v1.2.3