Skip to content

Commit

Permalink
Merge pull request #5 from pachay/master
Browse files Browse the repository at this point in the history
fix redeclare qrstr error on multiple QR codes in one pag
  • Loading branch information
phiamo committed Sep 11, 2012
2 parents f6bcf33 + de1178d commit bc6a9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/BarcodeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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):
Expand Down Expand Up @@ -85,4 +85,4 @@ protected function getAbsoluteBarcodeDir($type){
protected function getAbsolutePath(){
return $this->webroot.DIRECTORY_SEPARATOR.$this->webdir;
}
}
}

0 comments on commit bc6a9ae

Please sign in to comment.