1<?php 2 3namespace dokuwiki\Action; 4 5use dokuwiki\Ui\PageRevisions; 6use dokuwiki\Ui; 7 8/** 9 * Class Revisions 10 * 11 * Show the list of old revisions of the current page 12 * 13 * @package dokuwiki\Action 14 */ 15class Revisions extends AbstractAction 16{ 17 /** @inheritdoc */ 18 public function minimumPermission() 19 { 20 return AUTH_READ; 21 } 22 23 /** @inheritdoc */ 24 public function tplContent() 25 { 26 global $INFO, $INPUT; 27 (new PageRevisions($INFO['id']))->show($INPUT->int('first', -1)); 28 } 29} 30