From cd4090247281aff9fe47358851202fa7eea7fbe3 Mon Sep 17 00:00:00 2001
From: jorda <jorda@ettin.org>
Date: Sun, 3 Apr 2005 11:44:46 +0200
Subject: [PATCH] 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
---
 inc/actions.php | 2 ++
 1 file changed, 2 insertions(+)

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';
-- 
GitLab