Browse Source

Move some statements

main
Miraty 3 months ago
parent
commit
2f2ce4ab4f
  1. 11
      index.php

11
index.php

@ -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'])

Loading…
Cancel
Save