Skip to content

Commit 73eed88

Browse files
committed
Check the "format" against "gif" instead of "svg"
1 parent 21932c2 commit 73eed88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FieldtypeQRCode.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FieldtypeQRCode extends Fieldtype {
4040
return [
4141
"title" => "QR Code",
4242
"author" => "Romain Cazier",
43-
"version" => "1.0.13",
43+
"version" => "1.0.14",
4444
"summary" => "Generates a QR code from the public URL of the page (and more)",
4545
"href" => "https://github.com/romaincazier/FieldtypeQRCode",
4646
"icon" => "qrcode",
@@ -324,7 +324,7 @@ class FieldtypeQRCode extends Fieldtype {
324324

325325
public function ___wakeupValue(Page $page, Field $field, $value) {
326326
$field = $field->getContext($page);
327-
$this->svg = $field->get("format") === "svg";
327+
$this->svg = $field->get("format") !== "gif";
328328
$this->markup = $field->get("markup") === 1;
329329

330330
$user = $this->user;

0 commit comments

Comments
 (0)