From 55e0e32395bceb2af209a2deba718eee805d6e7a Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 5 Nov 2018 17:52:21 +0000 Subject: [PATCH] Let the client choose the protocol for QR images (see #477) --- ext/qr_code/theme.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/qr_code/theme.php b/ext/qr_code/theme.php index 90221b26..8c46b308 100644 --- a/ext/qr_code/theme.php +++ b/ext/qr_code/theme.php @@ -6,10 +6,8 @@ class QRImageTheme extends Themelet { public function links_block($link) { global $page; - $protocol = is_https_enabled() ? "https://" : "http://"; - $page->add_block( new Block( - "QR Code","QR Code","left",50)); + "QR Code","QR Code","left",50)); } }