Revert "Fix API call"

This reverts commit c03580bfb3.
This commit is contained in:
Alfred Egger 2019-06-19 10:44:41 +02:00
parent c03580bfb3
commit cdc94d2db7

View file

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