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    /**
17     * @inheritdoc
18     * @throws ActionAbort
19     */
20    public function preProcess() {
21        global $ID;
22        unlock($ID);
23
24        // continue with draftdel -> redirect -> show
25        throw new ActionAbort('draftdel');
26    }
27
28}
29