Fix API call

This commit is contained in:
Alfred Egger 2019-06-19 08:18:13 +02:00
parent c11efa568a
commit c03580bfb3

View file

@ -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(