diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-03-29 10:18:22 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-03-29 11:44:31 +0200 |
commit | c9d5430b981aac42d64435908fe6016de907de0c (patch) | |
tree | 7596002e6df8601d4f881a2b29d84b9ad0de6b20 | |
parent | cd12dcad1a482ea805f8dcc58b364e9c6cddc667 (diff) | |
download | rpg-c9d5430b981aac42d64435908fe6016de907de0c.tar.gz rpg-c9d5430b981aac42d64435908fe6016de907de0c.tar.bz2 |
Call act_edit for locked pages
50e988b 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.
-rw-r--r-- | inc/actions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php index 66068cd36..a426f0276 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -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 |