Skip to content

Commit

Permalink
Update QrCodeExtension.php
Browse files Browse the repository at this point in the history
Hopefully fixing endroid#93  - untested, please double-check!
  • Loading branch information
ThomasLandauer authored Apr 23, 2017
1 parent bdc2d1a commit 0843836
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Twig/Extension/QrCodeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ public function getQrCodeReference($text, array $options = [], $referenceType)
*/
public function qrcodeDataUriFunction($text, array $options = [])
{
$options['text'] = $text;
$qrCode = $this->qrCodeFactory->create($options);
$qrCode = $this->qrCodeFactory->create($text, $options);

return $qrCode->writeString(DataUriWriter::class);
}
Expand Down

0 comments on commit 0843836

Please sign in to comment.