Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Honor type setting for recent changes. fixes #2322
  • Loading branch information
splitbrain committed Apr 20, 2018
1 parent 6ea61f3 commit e009a94
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/Action/Recent.php
Expand Up @@ -11,6 +11,9 @@
*/
class Recent extends AbstractAction {

/** @var string what type of changes to show */
protected $showType = 'both';

/** @inheritdoc */
public function minimumPermission() {
return AUTH_NONE;
Expand All @@ -22,13 +25,16 @@ public function preProcess() {
$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);
}

}

0 comments on commit e009a94

Please sign in to comment.