diff --git a/inc/Action/Recent.php b/inc/Action/Recent.php index 4fb3e41544aed46413fa5967bef9c32450a2b8df..9273d52c8e3008cf01c54fcfef03a888697862f4 100644 --- a/inc/Action/Recent.php +++ b/inc/Action/Recent.php @@ -11,6 +11,9 @@ namespace dokuwiki\Action; */ class Recent extends AbstractAction { + /** @var string what type of changes to show */ + protected $showType = 'both'; + /** @inheritdoc */ public function minimumPermission() { return AUTH_NONE; @@ -22,13 +25,16 @@ class Recent extends AbstractAction { $show_changes = $INPUT->str('show_changes'); if(!empty($show_changes)) { set_doku_pref('show_changes', $show_changes); + $this->showType = $show_changes; + } else { + $this->showType = get_doku_pref('show_changes', 'both'); } } /** @inheritdoc */ public function tplContent() { global $INPUT; - html_recent((int) $INPUT->extract('first')->int('first')); + html_recent((int) $INPUT->extract('first')->int('first'), $this->showType); } }