work on printing
This commit is contained in:
parent
f870a8ea2f
commit
222ad02e49
@ -377,7 +377,8 @@ class printing_printgcp extends PrintingDriver
|
|||||||
* @return array status array
|
* @return array status array
|
||||||
*/
|
*/
|
||||||
public function sendPrintToPrinter($printerid, $printjobtitle, $filepath, $contenttype)
|
public function sendPrintToPrinter($printerid, $printjobtitle, $filepath, $contenttype)
|
||||||
{global $conf;
|
{
|
||||||
|
global $conf;
|
||||||
// Check if printer id
|
// Check if printer id
|
||||||
if (empty($printerid)) {
|
if (empty($printerid)) {
|
||||||
return array('status' =>0, 'errorcode' =>'', 'errormessage'=>'No provided printer ID');
|
return array('status' =>0, 'errorcode' =>'', 'errormessage'=>'No provided printer ID');
|
||||||
@ -454,7 +455,7 @@ class printing_printgcp extends PrintingDriver
|
|||||||
$keyforprovider = ''; // @FIXME
|
$keyforprovider = ''; // @FIXME
|
||||||
|
|
||||||
// Token storage
|
// Token storage
|
||||||
$storage = new DoliStorage($this->db, $this->conf, $keyforprovider);
|
$storage = new DoliStorage($this->db, $conf, $keyforprovider);
|
||||||
// Setup the credentials for the requests
|
// Setup the credentials for the requests
|
||||||
$credentials = new Credentials(
|
$credentials = new Credentials(
|
||||||
$this->google_id,
|
$this->google_id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user