summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-03-29 10:18:22 +0200
committerAdrian Lang <lang@cosmocode.de>2010-03-29 11:44:31 +0200
commitc9d5430b981aac42d64435908fe6016de907de0c (patch)
tree7596002e6df8601d4f881a2b29d84b9ad0de6b20 /inc/actions.php
parentcd12dcad1a482ea805f8dcc58b364e9c6cddc667 (diff)
downloadrpg-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.
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php2
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