Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix redeclare qrstr error on multiple QR codes in one pag #5

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 Model/BarcodeService.php
View
4 Model/BarcodeService.php
@@ -26,7 +26,7 @@ public function saveAs($type, $text, $file){
@unlink($file);
switch ($type){
case $type == 'qr':
- include __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."Resources".DIRECTORY_SEPARATOR."phpqrcode".DIRECTORY_SEPARATOR."qrlib.php";
+ include_once __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."Resources".DIRECTORY_SEPARATOR."phpqrcode".DIRECTORY_SEPARATOR."qrlib.php";
\QRcode::png($text, $file);
break;
case is_numeric($type):
@@ -83,4 +83,4 @@ protected function getAbsoluteBarcodeDir($type){
protected function getAbsolutePath(){
return $this->kernelrootdir.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."web".DIRECTORY_SEPARATOR.$this->webdir;
}
-}
+}
Something went wrong with that request. Please try again.