Skip to content

Commit

Permalink
fix: add back the contition to write_qrcode_on_footer
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Nov 12, 2024
1 parent a54d34e commit 7640144
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Handler/FooterHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ private function getTemplateVars(): array {
$this->templateVars['validateIn'] = $this->l10n->t('Validate in %s.', ['%s']);
}

$this->templateVars['qrcode'] = $this->getQrCodeImageBase64($this->templateVars['validationSite']);
if ($this->appConfig->getAppValueInt('write_qrcode_on_footer', 1)) {
$this->templateVars['qrcode'] = $this->getQrCodeImageBase64($this->templateVars['validationSite']);
}

return $this->templateVars;
}
Expand Down

0 comments on commit 7640144

Please sign in to comment.