From 5f65904431dd0a39e9c47b1d6a2d86a0f0a5d8a9 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 28 Jan 2014 09:25:50 +0100 Subject: [PATCH] [FIX] HTTPS detecion on Template --- public/templates/mpos/account/qrcode/default.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/mpos/account/qrcode/default.tpl b/public/templates/mpos/account/qrcode/default.tpl index fd93f9f2..647dfb82 100644 --- a/public/templates/mpos/account/qrcode/default.tpl +++ b/public/templates/mpos/account/qrcode/default.tpl @@ -4,7 +4,7 @@ {literal} $(document).ready(function(){ $('#qrcodeholder').qrcode({ - text : "{/literal}|http{if $smarty.server.HTTPS|default:"0" eq '1'}s{/if}://{$smarty.server.SERVER_NAME}{$smarty.server.SCRIPT_NAME}?page=api|{$GLOBAL.userdata.api_key}|{$GLOBAL.userdata.id}|{literal}", + text : "{/literal}|http{if $smarty.server.HTTPS|default:"0" eq 'on'}s{/if}://{$smarty.server.SERVER_NAME}{$smarty.server.SCRIPT_NAME}?page=api|{$GLOBAL.userdata.api_key}|{$GLOBAL.userdata.id}|{literal}", render : "canvas", // 'canvas' or 'table'. Default value is 'canvas' background : "#ffffff", foreground : "#000000",