summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-02-03 13:26:12 -0800
committerChristopher Smith <chris@jalakai.co.uk>2013-02-03 13:26:12 -0800
commit2509b6f19785d4c179c3957c17bdde2e2e9d0149 (patch)
tree4ab13af08e8d769e6ef2931579eae282cc0fff49 /inc/actions.php
parent6ecd102555022984aa926a4d423a98c775a06ca4 (diff)
parent646a531a33fe5c5e32a932e2a889c43702505c48 (diff)
downloadrpg-2509b6f19785d4c179c3957c17bdde2e2e9d0149.tar.gz
rpg-2509b6f19785d4c179c3957c17bdde2e2e9d0149.tar.bz2
Merge pull request #164 from splitbrain/diff_recent_prefs
store choices for recent changes and diff views in cookie
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php16
1 files changed, 16 insertions, 0 deletions
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';