From cdc94d2db7a59b9cd6c7f806ee7297546316699f Mon Sep 17 00:00:00 2001 From: Alfred Egger Date: Wed, 19 Jun 2019 10:44:41 +0200 Subject: [PATCH] Revert "Fix API call" This reverts commit c03580bfb3c65743c74aae859066764f8e9656df. --- lib/Controller/PrinterController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/PrinterController.php b/lib/Controller/PrinterController.php index 5314226..956144d 100644 --- a/lib/Controller/PrinterController.php +++ b/lib/Controller/PrinterController.php @@ -28,7 +28,7 @@ class PrinterController extends Controller { */ public function printfile($sourcefile, $orientation) { if($orientation === "landscape") { - $filefullpath = Filesystem::getLocalFile($sourcefile); + $filefullpath = \OC\Files\Filesystem::getLocalFile($sourcefile); exec('lpr ' . $filefullpath); return new JSONResponse( array(