Move some statements
This commit is contained in:
parent
95e143f311
commit
2f2ce4ab4f
1 changed files with 7 additions and 4 deletions
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…
Reference in a new issue