You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
516 B

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