diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-05-02 11:23:14 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-05-02 11:23:14 +0200 |
commit | 5595e038ae681dde19275f9896795cd92cbed5fc (patch) | |
tree | f516ff1a263cc8427f4fe5d2f48f34e120f03575 /lib/private/template/functions.php | |
parent | b8650be73295336b74a606e3bc567a13e81cfc83 (diff) | |
download | nextcloud-server-5595e038ae681dde19275f9896795cd92cbed5fc.tar.gz nextcloud-server-5595e038ae681dde19275f9896795cd92cbed5fc.zip |
Remove unneeded private wrapper methods
Diffstat (limited to 'lib/private/template/functions.php')
-rw-r--r-- | lib/private/template/functions.php | 6 |
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]); } /** |