3 namespace dokuwiki\Action
;
5 use dokuwiki\Ui\PageDraft
;
6 use dokuwiki\Action\Exception\ActionException
;
12 * Screen to see and recover a draft
14 * @package dokuwiki\Action
15 * @fixme combine with Recover?
17 class Draft
extends AbstractAction
20 public function minimumPermission()
23 if ($INFO['exists']) {
31 public function checkPreconditions()
33 parent
::checkPreconditions();
35 if (!isset($INFO['draft']) ||
!file_exists($INFO['draft'])) throw new ActionException('edit');
39 public function tplContent()
41 (new PageDraft())->show();