Skip to content

Commit

Permalink
Update the class according to https://github.com/pH-7/QRCode-Generato…
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Mar 18, 2016
1 parent 99aa2ca commit 1f45a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _protected/framework/Service/QRCode.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class QRCode
{

const API_URL = 'http://chart.apis.google.com/chart?chs=';
const API_URL = 'https://chart.googleapis.com/chart?chs=';

private $_sData;

Expand Down Expand Up @@ -323,6 +323,7 @@ public function wifi($sType, $sSsid, $sPwd)
public function finish()
{
$this->_sData .= 'END:VCARD';
$this->_sData = Url::encode($this->_sData);
return $this;
}

Expand All @@ -336,7 +337,6 @@ public function finish()
*/
public function get($iSize = 150, $cECLevel = 'L', $iMargin = 1)
{
$this->_sData = Url::encode($this->_sData);
return static::API_URL . $iSize . 'x' . $iSize . '&cht=qr&chld=' . $cECLevel . '|' . $iMargin . '&chl=' . $this->_sData;
}

Expand Down

0 comments on commit 1f45a9c

Please sign in to comment.