]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
add basewiki page
[ikiwiki.git] / IkiWiki.pm
index c8d959edd11c4edf31b46fab0935e29bd0ff261e..dcb68bca6d525578fee12e7bdd25d5f92c1e51ef 100644 (file)
@@ -621,11 +621,11 @@ sub unlockwiki () { #{{{
 sub commit_hook_enabled () { #{{{
        open(COMMITLOCK, "+>$config{wikistatedir}/commitlock") ||
                error ("cannot write to $config{wikistatedir}/commitlock: $!");
-       if (! flock(WIKILOCK, 1 | 4)) { # LOCK_SH | LOCK_NB to test
-               close WIKILOCK;
+       if (! flock(COMMITLOCK, 1 | 4)) { # LOCK_SH | LOCK_NB to test
+               close COMMITLOCK;
                return 0;
        }
-       close WIKILOCK;
+       close COMMITLOCK;
        return 1;
 } #}}}