From b340fb834c11564738fe8f1c1a93af7a641ba2ca Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 10 Mar 2010 10:25:50 -0500 Subject: [PATCH] bug 4314: add using_https environment variable Added new HTML template variable, using_https, for use of OPAC or staff-side templates that may need to know whether to use http:// or https:// links to off-site content. Signed-off-by: Galen Charlton --- C4/Auth.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Auth.pm b/C4/Auth.pm index ef33842248..0ac74a9f1d 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -353,6 +353,7 @@ sub get_template_and_user { XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), BranchesLoop => GetBranchesLoop(), + using_https => $in->{'query'}->https() ? 1 : 0, ); if ( $in->{'type'} eq "intranet" ) { -- 2.39.5