diff options
author | Anika Henke <anika@selfthinker.org> | 2013-01-26 16:53:23 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2013-01-26 16:53:23 +0000 |
commit | 3c94d07beba64154ecd707805fa87f2eaf5e4d02 (patch) | |
tree | 9be7178deadbba10404f3757f776e9eedcf9fe5b /inc/template.php | |
parent | b5460ee2c820d95f75fd47d2f8bcbe5dddc21e7e (diff) | |
download | rpg-3c94d07beba64154ecd707805fa87f2eaf5e4d02.tar.gz rpg-3c94d07beba64154ecd707805fa87f2eaf5e4d02.tar.bz2 |
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.
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 4af35cc2b..aa0fd5c00 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? |