Move some statements

This commit is contained in:
Miraty 2021-11-03 19:35:20 +01:00
parent 95e143f311
commit 2f2ce4ab4f
1 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,3 @@
<?php require "inc.php"; ?>
<!--
_ _ _ ___ ____
| | (_| |__ _ __ ___ / _ \| _ \
@ -20,6 +19,10 @@ This file is part of LibreQR.
-->
<?php
use CodeItNow\BarcodeBundle\Utils\QrCode;
require "inc.php";
$params = array(
"txt" => "",
"redondancy" => DEFAULT_REDONDANCY,
@ -70,9 +73,6 @@ if (
}
require "barcode-generator/Utils/QrCode.php";
use CodeItNow\BarcodeBundle\Utils\QrCode;
?>
<!DOCTYPE html>
<html lang="<?= $locale ?>">
@ -210,6 +210,9 @@ use CodeItNow\BarcodeBundle\Utils\QrCode;
<?php
if (!empty($params['txt'])) {
require "barcode-generator/Utils/QrCode.php";
$qrCode = new QrCode();
$qrCode
->setText($params['txt'])