diff --git a/lib/Controller/PrinterController.php b/lib/Controller/PrinterController.php index 956144d..5314226 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 = \OC\Files\Filesystem::getLocalFile($sourcefile); + $filefullpath = Filesystem::getLocalFile($sourcefile); exec('lpr ' . $filefullpath); return new JSONResponse( array(