summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-11-08 18:29:57 +0100
committerGitHub <noreply@github.com>2016-11-08 18:29:57 +0100
commit100cec59a75f6881b2435a1dc0bac8307d45809e (patch)
tree36923667662c8fd750500d1afc833079556850d8
parent1ad3043e4fd36a5e6b206c1bf4bbee5b35c92717 (diff)
parent9296038d7826b884cdd6c14287eb864f7cffb2a8 (diff)
downloadnextcloud-server-100cec59a75f6881b2435a1dc0bac8307d45809e.tar.gz
nextcloud-server-100cec59a75f6881b2435a1dc0bac8307d45809e.zip
Merge pull request #2037 from nextcloud/fix-preview-urls
Fix preview URLs
-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]);
}
/**