summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorBen Coburn <btcoburn@silicodon.net>2006-07-05 05:31:35 +0200
committerBen Coburn <btcoburn@silicodon.net>2006-07-05 05:31:35 +0200
commitc9b4bd1e30a047b11d0beaa4458204126e0c1b92 (patch)
treefcc68cf213146532363ca534c6e4a65e458a6b21 /inc/html.php
parent306ca8aa54954ea2623d9e4927a2c07b9efdfea3 (diff)
downloadrpg-c9b4bd1e30a047b11d0beaa4458204126e0c1b92.tar.gz
rpg-c9b4bd1e30a047b11d0beaa4458204126e0c1b92.tar.bz2
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
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php2
1 files changed, 1 insertions, 1 deletions
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);