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');
-    }
-
-}
d='n116' href='#n116'>116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173