Revisions.php 488 B

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