aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/template
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-07 18:26:18 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-08 16:39:13 +0100
commit9296038d7826b884cdd6c14287eb864f7cffb2a8 (patch)
tree927312a1f8d5c7b2c9a2815678baa440d3c616d3 /lib/private/legacy/template
parent5f15020b9bcc4732d81176f2c8380bfdbd16a051 (diff)
downloadnextcloud-server-9296038d7826b884cdd6c14287eb864f7cffb2a8.tar.gz
nextcloud-server-9296038d7826b884cdd6c14287eb864f7cffb2a8.zip
Fix preview URLs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/legacy/template')
-rw-r--r--lib/private/legacy/template/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php
index 226cf046884..7814918b815 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]);
}
/**