Skip to content
Snippets Groups Projects
Cancel.php 421 B
Newer Older
<?php

namespace dokuwiki\Action;

use dokuwiki\Action\Exception\ActionAbort;

Andreas Gohr's avatar
Andreas Gohr committed
/**
 * Class Cancel
 *
 * Alias for show. Aborts editing
 *
 * @package dokuwiki\Action
 */
class Cancel extends AbstractAliasAction {

Andreas Gohr's avatar
Andreas Gohr committed
    /** @inheritdoc */
    public function preProcess() {
Andreas Gohr's avatar
Andreas Gohr committed
        global $ID;
        unlock($ID);

        // continue with draftdel -> redirect -> show
        throw new ActionAbort('draftdel');