From 6feccd0fc3062c0cc89c0342fc2361391044c75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Tue, 26 Jun 2012 11:55:13 +0000 Subject: [PATCH] Fix skin path for HTML mails (#485) --- .../lib/Lemonldap/NG/Portal/MailReset.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/MailReset.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/MailReset.pm index 9ef735897..b28e3ad50 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/MailReset.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/MailReset.pm @@ -8,7 +8,7 @@ package Lemonldap::NG::Portal::MailReset; use strict; use warnings; -our $VERSION = '1.2.0'; +our $VERSION = '1.2.1'; use Lemonldap::NG::Portal::Simple qw(:all); use base qw(Lemonldap::NG::Portal::SharedConf Exporter); @@ -264,8 +264,8 @@ sub sendConfirmationMail { # Use HTML template my $tplfile = $self->getApacheHtdocsPath - . "skins/$self->{portalSkin}/mail_confirm.tpl"; - $tplfile = $self->getApacheHtdocsPath . "skins/common/mail_confirm.tpl" + . "/skins/$self->{portalSkin}/mail_confirm.tpl"; + $tplfile = $self->getApacheHtdocsPath . "/skins/common/mail_confirm.tpl" unless ( -e $tplfile ); my $template = HTML::Template->new( filename => $tplfile, @@ -373,8 +373,9 @@ sub sendPasswordMail { # Use HTML template my $tplfile = $self->getApacheHtdocsPath - . "skins/$self->{portalSkin}/mail_password.tpl"; - $tplfile = $self->getApacheHtdocsPath . "skins/common/mail_password.tpl" + . "/skins/$self->{portalSkin}/mail_password.tpl"; + $tplfile = + $self->getApacheHtdocsPath . "/skins/common/mail_password.tpl" unless ( -e $tplfile ); my $template = HTML::Template->new( filename => $tplfile,