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