Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Fixing the print keyword issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MianSaleem committed Jun 1, 2017
1 parent dbac37f commit 9e41d35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
try {
$escpos = new Escpos();
$escpos->load($printer);
$escpos->print($rdata->data);
$escpos->printData($rdata->data);
echo '> Printied', "\n";
} catch (Exception $e) {
echo '> Error occurred, unable to print. ', $e->getMessage(), "\n";
Expand All @@ -97,7 +97,7 @@
try {
$escpos = new Escpos();
$escpos->load($printer);
$escpos->print($rdata->data);
$escpos->printData($rdata->data);
echo '> Printied', "\n";
} catch (Exception $e) {
echo '> Error occurred, unable to print. ', $e->getMessage(), "\n";
Expand All @@ -112,7 +112,7 @@
try {
$escpos = new Escpos();
$escpos->load($rdata->data->printer);
$escpos->print($rdata->data);
$escpos->printData($rdata->data);
echo '> Printied', "\n";
} catch (Exception $e) {
echo '> Error occurred, unable to print. ', $e->getMessage(), "\n";
Expand Down
2 changes: 1 addition & 1 deletion lib/Escpos.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function load($printer) {

}

public function print($data) {
public function printData($data) {

if (isset($data->logo) && !empty($data->logo)) {
$file = basename($data->logo);
Expand Down

0 comments on commit 9e41d35

Please sign in to comment.