Bug 25360: (follow-up) Remove the https FIXME in Auth.pm
The FIXME is no longer valid since we fixed the X-Forwarded headers for Plack. And since we do not even use using_https anymore in the templates (see bug 21094). Test plan: Run Auth.t Git grep for using_https Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
This commit is contained in:
parent
2e544f127c
commit
c37c0fba96
|
|
@ -448,11 +448,6 @@ sub get_template_and_user {
|
|||
|
||||
# these template parameters are set the same regardless of $in->{'type'}
|
||||
|
||||
# Set the using_https variable for templates
|
||||
# FIXME Under Plack the CGI->https method always returns 'OFF'
|
||||
my $https = $in->{query}->https();
|
||||
my $using_https = ( defined $https and $https ne 'OFF' ) ? 1 : 0;
|
||||
|
||||
my $minPasswordLength = C4::Context->preference('minPasswordLength');
|
||||
$minPasswordLength = 3 if not $minPasswordLength or $minPasswordLength < 3;
|
||||
$template->param(
|
||||
|
|
@ -472,7 +467,6 @@ sub get_template_and_user {
|
|||
singleBranchMode => ( Koha::Libraries->search->count == 1 ),
|
||||
XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"),
|
||||
XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"),
|
||||
using_https => $using_https,
|
||||
noItemTypeImages => C4::Context->preference("noItemTypeImages"),
|
||||
marcflavour => C4::Context->preference("marcflavour"),
|
||||
OPACBaseURL => C4::Context->preference('OPACBaseURL'),
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ my $tmpl_in_dir = 'koha-tmpl';
|
|||
my $tmpl_out_dir = 'koha-tt';
|
||||
|
||||
# template toolkit variables NOT to scope, in other words, variables that need to remain global (case sensitive)
|
||||
my @globals = ("themelang","JacketImages","OPACAmazonCoverImages","GoogleJackets","BakerTaylorEnabled",
|
||||
"SyndeticsEnabled", "OpacRenewalAllowed", "item_level_itypes","noItemTypeImages",
|
||||
"virtualshelves", "RequestOnOpac", "COinSinOPACResults", "OPACXSLTResultsDisplay",
|
||||
"OPACItemsResultsDisplay", "LibraryThingForLibrariesID", "opacuserlogin", "TagsEnabled",
|
||||
"TagsShowOnList", "TagsInputOnList","loggedinusername","opacbookbag",
|
||||
"OPACAmazonEnabled", "SyndeticsCoverImages","using_https");
|
||||
my @globals = ( "themelang","JacketImages","OPACAmazonCoverImages","GoogleJackets","BakerTaylorEnabled",
|
||||
"SyndeticsEnabled", "OpacRenewalAllowed", "item_level_itypes","noItemTypeImages",
|
||||
"virtualshelves", "RequestOnOpac", "COinSinOPACResults", "OPACXSLTResultsDisplay",
|
||||
"OPACItemsResultsDisplay", "LibraryThingForLibrariesID", "opacuserlogin", "TagsEnabled",
|
||||
"TagsShowOnList", "TagsInputOnList","loggedinusername","opacbookbag",
|
||||
"OPACAmazonEnabled", "SyndeticsCoverImages" );
|
||||
|
||||
# Arguments:
|
||||
my $KOHA_ROOT;
|
||||
|
|
|
|||
Loading…
Reference in New Issue