Fix typo: s/templatesDir/templateDir/g (#1819)

This commit is contained in:
Xavier Guimard 2019-06-26 11:59:13 +02:00
parent 45a0b68c3b
commit e15a41bc66
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ has stylesheet => (
( $self->conf->{notificationXSLTfile}
and -e $self->conf->{notificationXSLTfile} )
? $self->conf->{notificationXSLTfile}
: $self->conf->{templatesDir} . '/common/notification.xsl';
: $self->conf->{templateDir} . '/common/notification.xsl';
unless ( -e $styleFile ) {
$self->{logger}->error("$styleFile not found, aborting");
die "$styleFile not found";

View File

@ -36,7 +36,7 @@ sub displayInit {
sub display {
my ( $self, $req ) = @_;
my $skin_dir = $self->conf->{templatesDir};
my $skin_dir = $self->conf->{templateDir};
my ( $skinfile, %templateParams );
# 1. Authentication not complete
@ -438,9 +438,9 @@ sub staticFile {
require Plack::Util;
require Cwd;
require HTTP::Date;
open my $fh, '<:raw', $self->conf->{templatesDir} . "/$file"
open my $fh, '<:raw', $self->conf->{templateDir} . "/$file"
or return $self->sendError( $req,
$self->conf->{templatesDir} . "/$file: $!", 403 );
$self->conf->{templateDir} . "/$file: $!", 403 );
my @stat = stat $file;
Plack::Util::set_io_path( $fh, Cwd::realpath($file) );
return [