parent
c03580bfb3
commit
cdc94d2db7
|
@ -28,7 +28,7 @@ class PrinterController extends Controller {
|
||||||
*/
|
*/
|
||||||
public function printfile($sourcefile, $orientation) {
|
public function printfile($sourcefile, $orientation) {
|
||||||
if($orientation === "landscape") {
|
if($orientation === "landscape") {
|
||||||
$filefullpath = Filesystem::getLocalFile($sourcefile);
|
$filefullpath = \OC\Files\Filesystem::getLocalFile($sourcefile);
|
||||||
exec('lpr ' . $filefullpath);
|
exec('lpr ' . $filefullpath);
|
||||||
return new JSONResponse(
|
return new JSONResponse(
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in a new issue