Skip to content
Snippets Groups Projects
Commit c828a5d6 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

execute edit action when draft was specified but no draft exists FS#2240

parent f93f6168
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,7 @@ function act_sendheaders($headers) {
function act_clean($act){
global $lang;
global $conf;
global $INFO;
// check if the action was given as array key
if(is_array($act)){
......@@ -219,6 +220,9 @@ function act_clean($act){
return 'show';
}
//is there really a draft?
if($act == 'draft' && !file_exists($INFO['draft'])) return 'edit';
if(!in_array($act,array('login','logout','register','save','cancel','edit','draft',
'preview','search','show','check','index','revisions',
'diff','recent','backlink','admin','subscribe','revert',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment