]> git.decadent.org.uk Git - memories.git/commitdiff
Use configured lock directory, not hard-coded.
authorSimon Cozens <simon@simon-cozens.org>
Wed, 11 Apr 2007 06:36:35 +0000 (06:36 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Wed, 11 Apr 2007 06:36:35 +0000 (06:36 +0000)
git-svn-id: http://svn.simon-cozens.org/memories/trunk@62 041978f6-d955-411f-a9d7-1d8545c9c3c7

Memories.pm

index 87a5ac0036228192f37066404862618339eb095f..1a0b994edd3a96dc15f0a68b23443608421b5be8 100644 (file)
@@ -81,7 +81,7 @@ sub additional_data {
     }
     $r->{template_args}{now} = Time::Piece->new;
     if ($r->session) {
-        (tied %{$r->session})->{lock_manager}->clean('/var/lib/memories/sessionlock', 3600) #remove files older than 1 hour
+        (tied %{$r->session})->{lock_manager}->clean(Memories->config->{auth}{session_args}{LockDirectory}, 3600) #remove files older than 1 hour
     }
     return $r->do_rss if ($r->params->{format} =~ /rss/)
 }