summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjorda <jorda@ettin.org>2005-04-03 11:44:46 +0200
committerjorda <jorda@ettin.org>2005-04-03 11:44:46 +0200
commitcd4090247281aff9fe47358851202fa7eea7fbe3 (patch)
treeaa4f5668352b8e6d9028e27b91fdbd370debb168
parent3ae0dd35df72193095029d06f5459b5243430140 (diff)
downloadrpg-cd4090247281aff9fe47358851202fa7eea7fbe3.tar.gz
rpg-cd4090247281aff9fe47358851202fa7eea7fbe3.tar.bz2
fixed .lock files
The name of .lock files was not being set since $ID was not initialized as global inside the act_edit() function. Only a .txt.lock file was created causing some ugly errors. darcs-hash:20050403094446-18876-28ab4f94f034e1db34639d942dc3816cacd1ca5a.gz
-rw-r--r--inc/actions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 26bc18fa2..463186e82 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -194,6 +194,8 @@ function act_auth($act){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function act_edit($act){
+ global $ID;
+
//check if locked by anyone - if not lock for my self
$lockedby = checklock($ID);
if($lockedby) return 'locked';