From 977d24e82dde93777af3d815dc8f7b875dd7add1 Mon Sep 17 00:00:00 2001 From: Matthew Connelly Date: Sat, 14 Nov 2015 07:45:42 +0000 Subject: [PATCH] correct an incorrect config variable --- lib/App/WerePaste.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/WerePaste.pm b/lib/App/WerePaste.pm index 3958b8b..0f732d9 100644 --- a/lib/App/WerePaste.pm +++ b/lib/App/WerePaste.pm @@ -24,7 +24,7 @@ sub DateTimeToQueryable { } sub ExpirationToDate { my $expire = shift; - $expire = $expire ? { split ':', $expire } : config->{default_expire}; + $expire = $expire ? { split ':', $expire } : config->{expiration}; return undef if $expire and $expire->{never}; return DateTimeToQueryable(%{ $expire }); }