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.
 
 
 
 
 

29 lines
462 B

  1. <?php
  2. namespace dokuwiki\Action;
  3. use dokuwiki\Action\Exception\ActionAbort;
  4. /**
  5. * Class Cancel
  6. *
  7. * Alias for show. Aborts editing
  8. *
  9. * @package dokuwiki\Action
  10. */
  11. class Cancel extends AbstractAliasAction
  12. {
  13. /**
  14. * @inheritdoc
  15. * @throws ActionAbort
  16. */
  17. public function preProcess()
  18. {
  19. global $ID;
  20. unlock($ID);
  21. // continue with draftdel -> redirect -> show
  22. throw new ActionAbort('draftdel');
  23. }
  24. }