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 <[email protected]>
---
 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

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to