Merge pull request #13451 from andreubisquerra/develop
Log CUPS print error on Receipt Printer module
This commit is contained in:
commit
2e1fe7b989
@ -78,6 +78,7 @@ class CupsPrintConnector implements PrintConnector
|
||||
|
||||
// Build command to work on data
|
||||
$tmpfname = tempnam(sys_get_temp_dir(), 'print-');
|
||||
if ($tmpfname==false) dol_syslog("CupsPrintConnector.php::Permission denied to write into target directory ".sys_get_temp_dir(), LOG_WARNING);
|
||||
file_put_contents($tmpfname, $data);
|
||||
$cmd = sprintf(
|
||||
"lp -d %s %s",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user