fixed same bug

This commit is contained in:
2026-09-30 14:33:11 +07:00
parent bc95edbc0f
commit 8a758e5875
18 changed files with 162 additions and 433 deletions
+4 -3
View File
@@ -5,7 +5,7 @@
Module : /Printer/PrintPOS.php
Created By : Siau Pheng ([email protected]).
Created Date : June 15th, 2008.
Last Modified : August 21st, 2026.
Last Modified : September 21st, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
@@ -70,8 +70,9 @@ class PrintPOS {
}
public function set_header_logo(string $logo_file = ""): void {
if (!empty($logo_file) && file_exists(PROJECT_ROOT."assets/images/".$logo_file)) {
$this->_config['logo'] = PROJECT_BASE."assets/images/".$logo_file;
if (!empty($logo_file) && file_exists(PROJECT_ROOT."public/assets/images/".$logo_file)) {
//$this->_config['logo'] = PROJECT_BASE."assets/images/".$logo_file;
$this->_config['logo'] = base64_encode(file_get_contents(PROJECT_ROOT."public/assets/images/".$logo_file));
}
}