Fix typo: s/templatesDir/templateDir/g (#1819)
This commit is contained in:
parent
45a0b68c3b
commit
e15a41bc66
|
@ -32,7 +32,7 @@ has stylesheet => (
|
||||||
( $self->conf->{notificationXSLTfile}
|
( $self->conf->{notificationXSLTfile}
|
||||||
and -e $self->conf->{notificationXSLTfile} )
|
and -e $self->conf->{notificationXSLTfile} )
|
||||||
? $self->conf->{notificationXSLTfile}
|
? $self->conf->{notificationXSLTfile}
|
||||||
: $self->conf->{templatesDir} . '/common/notification.xsl';
|
: $self->conf->{templateDir} . '/common/notification.xsl';
|
||||||
unless ( -e $styleFile ) {
|
unless ( -e $styleFile ) {
|
||||||
$self->{logger}->error("$styleFile not found, aborting");
|
$self->{logger}->error("$styleFile not found, aborting");
|
||||||
die "$styleFile not found";
|
die "$styleFile not found";
|
||||||
|
|
|
@ -36,7 +36,7 @@ sub displayInit {
|
||||||
sub display {
|
sub display {
|
||||||
my ( $self, $req ) = @_;
|
my ( $self, $req ) = @_;
|
||||||
|
|
||||||
my $skin_dir = $self->conf->{templatesDir};
|
my $skin_dir = $self->conf->{templateDir};
|
||||||
my ( $skinfile, %templateParams );
|
my ( $skinfile, %templateParams );
|
||||||
|
|
||||||
# 1. Authentication not complete
|
# 1. Authentication not complete
|
||||||
|
@ -438,9 +438,9 @@ sub staticFile {
|
||||||
require Plack::Util;
|
require Plack::Util;
|
||||||
require Cwd;
|
require Cwd;
|
||||||
require HTTP::Date;
|
require HTTP::Date;
|
||||||
open my $fh, '<:raw', $self->conf->{templatesDir} . "/$file"
|
open my $fh, '<:raw', $self->conf->{templateDir} . "/$file"
|
||||||
or return $self->sendError( $req,
|
or return $self->sendError( $req,
|
||||||
$self->conf->{templatesDir} . "/$file: $!", 403 );
|
$self->conf->{templateDir} . "/$file: $!", 403 );
|
||||||
my @stat = stat $file;
|
my @stat = stat $file;
|
||||||
Plack::Util::set_io_path( $fh, Cwd::realpath($file) );
|
Plack::Util::set_io_path( $fh, Cwd::realpath($file) );
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user