fixed the use of deprecated env var BLOGALBA_DIR

This commit is contained in:
Matthew Connelly 2015-11-15 23:41:26 +00:00
parent 0748405cbd
commit 37e695415c
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ use Dancer2;
my $HOST = `hostname -s`; chomp $HOST;
my $basedir=$ENV{BLOGALBA_DIR} || cwd();
my $basedir=$ENV{BASE}."/".$ENV{APP} || cwd();
config->{url} .= '/' unless config->{url} =~ /\/$/;
my ($page,@posts,@pages,%defparams);