From 0ae8cbf5c0b1a198b963490985b7738392ebcb97 Mon Sep 17 00:00:00 2001 From: ahriman Date: Mon, 3 Dec 2018 19:22:25 -0500 Subject: installed dokuwiki, added to navbar, updated news --- wiki/inc/Action/Save.php | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 wiki/inc/Action/Save.php (limited to 'wiki/inc/Action/Save.php') diff --git a/wiki/inc/Action/Save.php b/wiki/inc/Action/Save.php new file mode 100644 index 0000000..0b24729 --- /dev/null +++ b/wiki/inc/Action/Save.php @@ -0,0 +1,60 @@ + $DATE) { + throw new ActionException('conflict'); + } + + //save it + saveWikiText($ID, con($PRE, $TEXT, $SUF, true), $SUM, $INPUT->bool('minor')); //use pretty mode for con + //unlock it + unlock($ID); + + // continue with draftdel -> redirect -> show + throw new ActionAbort('draftdel'); + } + +} -- cgit 1.4.1-2-gfad0