aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/template/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/template/functions.php')
-rw-r--r--lib/private/template/functions.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php
index a57b3575ba9..a0540420e29 100644
--- a/lib/private/template/functions.php
+++ b/lib/private/template/functions.php
@@ -184,18 +184,16 @@ function mimetype_icon( $mimetype ) {
* Returns the path to the preview of the image.
* @param string $path path of file
* @return link to the preview
- *
- * For further information have a look at OC_Helper::previewIcon
*/
function preview_icon( $path ) {
- return OC_Helper::previewIcon( $path );
+ return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_preview', ['x' => 32, 'y' => 32, 'file' => $path]);
}
/**
* @param string $path
*/
function publicPreview_icon ( $path, $token ) {
- return OC_Helper::publicPreviewIcon( $path, $token );
+ return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_public_preview', ['x' => 32, 'y' => 32, 'file' => $path, 't' => $token]);
}
/**