diff options
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index f9d182aac..c10c1c4e8 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -152,6 +152,17 @@ function wikiFN($id,$rev=''){ } /** + * Returns the full path to the file for locking the page while editing. + * + * @author Ben Coburn <btcoburn@silicodon.net> + */ +function wikiLockFN($id) { + global $conf; + return $conf['lockdir'].'/'.sha1(cleanID($id)).'.lock'; +} + + +/** * returns the full path to the meta file specified by ID and extension * * The filename is URL encoded to protect Unicode chars |