xref: /dokuwiki/inc/Action/Recent.php (revision ab583a1bc44ef1ef3b917647fc361aabd055c2ac)
164ab5140SAndreas Gohr<?php
264ab5140SAndreas Gohr
364ab5140SAndreas Gohrnamespace dokuwiki\Action;
464ab5140SAndreas Gohr
5*ab583a1bSAndreas Gohr/**
6*ab583a1bSAndreas Gohr * Class Recent
7*ab583a1bSAndreas Gohr *
8*ab583a1bSAndreas Gohr * The recent changes view
9*ab583a1bSAndreas Gohr *
10*ab583a1bSAndreas Gohr * @package dokuwiki\Action
11*ab583a1bSAndreas Gohr */
1264ab5140SAndreas Gohrclass Recent extends AbstractAction {
1364ab5140SAndreas Gohr
1464ab5140SAndreas Gohr    /** @inheritdoc */
1564ab5140SAndreas Gohr    function minimumPermission() {
1664ab5140SAndreas Gohr        return AUTH_NONE;
1764ab5140SAndreas Gohr    }
1864ab5140SAndreas Gohr
1964ab5140SAndreas Gohr    /** @inheritdoc */
2064ab5140SAndreas Gohr    public function preProcess() {
2164ab5140SAndreas Gohr        global $INPUT;
2264ab5140SAndreas Gohr        $show_changes = $INPUT->str('show_changes');
2364ab5140SAndreas Gohr        if(!empty($show_changes)) {
2464ab5140SAndreas Gohr            set_doku_pref('show_changes', $show_changes);
2564ab5140SAndreas Gohr        }
2664ab5140SAndreas Gohr    }
2764ab5140SAndreas Gohr
28*ab583a1bSAndreas Gohr    /** @inheritdoc */
2964ab5140SAndreas Gohr    public function tplContent() {
3064ab5140SAndreas Gohr        global $INPUT;
3164ab5140SAndreas Gohr        html_recent($INPUT->int('first'));
3264ab5140SAndreas Gohr    }
3364ab5140SAndreas Gohr
3464ab5140SAndreas Gohr}
35