Skip to content

Commit e9e3a39

Browse files
authored
Quickly set QR size
1 parent ec6bfc8 commit e9e3a39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

QRCode.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ public function get($iSize = 150, $sECLevel = 'L', $iMargin = 1)
340340
*
341341
* @return void
342342
*/
343-
public function display()
343+
public function display( $iSize = 150)
344344
{
345-
echo '<p class="center"><img src="' . $this->_cleanUrl($this->get()) . '" alt="QR Code" /></p>';
345+
echo '<p class="center"><img src="' . $this->_cleanUrl($this->get($iSize)) . '" alt="QR Code" /></p>';
346346
}
347347

348348
/**

0 commit comments

Comments
 (0)