Skip to content
Snippets Groups Projects
Commit c9d5430b authored by Adrian Lang's avatar Adrian Lang
Browse files

Call act_edit for locked pages

50e988b1 accidentally stopped act_dispatch from calling act_edit for locked
pages, thus showing a generic »page not writable« message instead of a
page lock message.
parent cd12dcad
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ function act_dispatch(){
$ACT = act_draftsave($ACT);
//edit
if(($ACT == 'edit' || $ACT == 'preview' || $ACT == 'recover') && $INFO['editable']){
if(in_array($ACT, array('edit', 'preview', 'recover'))) {
$ACT = act_edit($ACT);
}else{
unlock($ID); //try to unlock
......
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