[Koha-patches] [PATCH] bug 4314: add using_https environment variable

Galen Charlton gmcharlt at gmail.com
Wed Mar 10 16:25:50 CET 2010


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 <gmcharlt at gmail.com>
---
 C4/Auth.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/C4/Auth.pm b/C4/Auth.pm
index fe79fe5..3b1a7d9 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" ) {
-- 
1.6.3.3




More information about the Koha-patches mailing list