From 9296038d7826b884cdd6c14287eb864f7cffb2a8 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 7 Nov 2016 18:26:18 +0100 Subject: [PATCH] Fix preview URLs Signed-off-by: Joas Schilling --- lib/private/legacy/template/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php index 226cf04688..7814918b81 100644 --- a/lib/private/legacy/template/functions.php +++ b/lib/private/legacy/template/functions.php @@ -186,14 +186,14 @@ function mimetype_icon( $mimetype ) { * @return link to the preview */ function preview_icon( $path ) { - return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_preview', ['x' => 32, 'y' => 32, 'file' => $path]); + return \OC::$server->getURLGenerator()->linkToRoute('core.Preview.getPreview', ['x' => 32, 'y' => 32, 'file' => $path]); } /** * @param string $path */ function publicPreview_icon ( $path, $token ) { - return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]); + return \OC::$server->getURLGenerator()->linkToRoute('files_sharing.PublicPreview.getPreview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]); } /**