From c9b4bd1e30a047b11d0beaa4458204126e0c1b92 Mon Sep 17 00:00:00 2001 From: Ben Coburn Date: Wed, 5 Jul 2006 05:31:35 +0200 Subject: refactor wiki page edit locking - Adds a new function in 'inc/pageutils.php', wikiLockFN($id) - All page edit locks should now be created with the file name generated by wikiLockFN($id). - wikiLockFN - Generates wiki page editing locks in the 'data/locks' directory where they belong. - This avoids polluting the 'data/pages' directory with lock files, which were causing namespaces to be created before they logically should exist. darcs-hash:20060705033135-05dcb-8eac316587cd54c6ebd861fe7b15975d90b0e4dc.gz --- inc/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 2a02b8c34..7f5050b8d 100644 --- a/inc/html.php +++ b/inc/html.php @@ -422,7 +422,7 @@ function html_locked(){ global $lang; global $INFO; - $locktime = filemtime(wikiFN($ID).'.lock'); + $locktime = filemtime(wikiLockFN($ID)); $expire = @date($conf['dformat'], $locktime + $conf['locktime'] ); $min = round(($conf['locktime'] - (time() - $locktime) )/60); -- cgit v1.2.3