diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-02-03 13:26:12 -0800 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-02-03 13:26:12 -0800 |
commit | 2509b6f19785d4c179c3957c17bdde2e2e9d0149 (patch) | |
tree | 4ab13af08e8d769e6ef2931579eae282cc0fff49 /inc/template.php | |
parent | 6ecd102555022984aa926a4d423a98c775a06ca4 (diff) | |
parent | 646a531a33fe5c5e32a932e2a889c43702505c48 (diff) | |
download | rpg-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/template.php')
-rw-r--r-- | inc/template.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index 2c083c964..a5bcabf1e 100644 --- a/inc/template.php +++ b/inc/template.php @@ -124,7 +124,11 @@ function tpl_content_core() { html_diff(); break; case 'recent': - html_recent($INPUT->extract('first')->int('first'), $INPUT->str('show_changes')); + $show_changes = $INPUT->str('show_changes'); + if (empty($show_changes)) { + $show_changes = get_doku_pref('show_changes', $show_changes); + } + html_recent($INPUT->extract('first')->int('first'), $show_changes); break; case 'index': html_index($IDX); #FIXME can this be pulled from globals? is it sanitized correctly? |