about summary refs log tree commit diff stats
path: root/wiki/inc/Action/Draftdel.php
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/inc/Action/Draftdel.php')
-rw-r--r--wiki/inc/Action/Draftdel.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/wiki/inc/Action/Draftdel.php b/wiki/inc/Action/Draftdel.php
deleted file mode 100644
index 77378f7..0000000
--- a/wiki/inc/Action/Draftdel.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-namespace dokuwiki\Action;
-
-use dokuwiki\Action\Exception\ActionAbort;
-
-/**
- * Class Draftdel
- *
- * Delete a draft
- *
- * @package dokuwiki\Action
- */
-class Draftdel extends AbstractAction {
-
-    /** @inheritdoc */
-    public function minimumPermission() {
-        return AUTH_EDIT;
-    }
-
-    /**
-     * Delete an existing draft if any
-     *
-     * Reads draft information from $INFO. Redirects to show, afterwards.
-     *
-     * @throws ActionAbort
-     */
-    public function preProcess() {
-        global $INFO;
-        @unlink($INFO['draft']);
-        $INFO['draft'] = null;
-
-        throw new ActionAbort('redirect');
-    }
-
-}