🤖 Rector and PHPCS fixes
[dokuwiki.git] / inc / Action / Cancel.php
blob31b481e99c97dbbc62ee2ea474f1c180f77ad789
1 <?php
3 namespace dokuwiki\Action;
5 use dokuwiki\Action\Exception\ActionAbort;
7 /**
8 * Class Cancel
10 * Alias for show. Aborts editing
12 * @package dokuwiki\Action
14 class Cancel extends AbstractAliasAction
16 /**
17 * @inheritdoc
18 * @throws ActionAbort
20 public function preProcess()
22 global $ID;
23 unlock($ID);
25 // continue with draftdel -> redirect -> show
26 throw new ActionAbort('draftdel');