Use getSkin to choose portal skin (#1177)

environments/ppa-mbqj77/deployments/1
Clément Oudot 9 years ago
parent 27b25a7922
commit c18533d447
  1. 4
      lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm
  2. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm

@ -221,7 +221,7 @@ sub sendJs {
[
'Content-Type' => 'application/javascript',
'Content-Length' => length($s),
'Cache-Control' => 'max-age=2592000',
'Cache-Control' => 'max-age=2592000',
],
[$s]
];
@ -257,7 +257,7 @@ sub sendHtml {
$htpl->param(
STATIC_PREFIX => $sp,
SCRIPTNAME => $sc,
( $self->can('tplParams') ? ( $self->tplParams ) : () ),
( $self->can('tplParams') ? ( $self->tplParams($req) ) : () ),
(
$args{params}
? %{ $args{params} }

@ -723,7 +723,7 @@ sub rebuildCookies {
sub tplParams {
return (
SKIN => $_[0]->conf->{portalSkin},
SKIN => $_[0]->getSkin( $_[1] ),
PORTAL_URL => $_[0]->conf->{portal},
);
}

Loading…
Cancel
Save