164ab5140SAndreas Gohr<?php 264ab5140SAndreas Gohr 364ab5140SAndreas Gohrnamespace dokuwiki\Action; 464ab5140SAndreas Gohr 5ab583a1bSAndreas Gohr/** 6ab583a1bSAndreas Gohr * Class Recent 7ab583a1bSAndreas Gohr * 8ab583a1bSAndreas Gohr * The recent changes view 9ab583a1bSAndreas Gohr * 10ab583a1bSAndreas Gohr * @package dokuwiki\Action 11ab583a1bSAndreas Gohr */ 1264ab5140SAndreas Gohrclass Recent extends AbstractAction { 1364ab5140SAndreas Gohr 1464ab5140SAndreas Gohr /** @inheritdoc */ 15*ec701221SAndreas Gohr public 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 28ab583a1bSAndreas 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