🐛 Global switch for the QR code generator (#129)
This commit is contained in:
@@ -2,7 +2,14 @@
|
||||
require_once 'config/config.php';
|
||||
require_once BASE_PATH . '/lib/ICS/ICS.php';
|
||||
require_once BASE_PATH . '/lib/vCard/vCard.php';
|
||||
require_once BASE_PATH . '/lib/Qrcode/Qrcode.php';
|
||||
|
||||
if (QRCODE_GENERATOR === "external-api.qrserver.com") {
|
||||
require_once BASE_PATH . '/lib/Qrcode/Qrcode.php';
|
||||
}
|
||||
|
||||
if (QRCODE_GENERATOR === "internal-chillerlan.qrcode") {
|
||||
require_once BASE_PATH . '/lib/Qrcode/Qrcode-intchil.php';
|
||||
}
|
||||
|
||||
class StaticQrcode {
|
||||
private $sData; // Data for the qr code
|
||||
|
||||
Reference in New Issue
Block a user