summaryrefslogtreecommitdiffstats
path: root/lib/public/template.php
diff options
context:
space:
mode:
authorGeorg Ehrke <georg@ownCloud.com>2013-06-26 18:04:18 +0200
committerGeorg Ehrke <georg@ownCloud.com>2013-06-26 18:04:22 +0200
commit39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd (patch)
treeba9c23cc7c5ace7195639192769b9635b9531b7f /lib/public/template.php
parent9b7efef39d3f7eae45741f0adf0bc0d52945d842 (diff)
downloadnextcloud-server-39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd.tar.gz
nextcloud-server-39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd.zip
implement server side use of previews
Diffstat (limited to 'lib/public/template.php')
-rw-r--r--lib/public/template.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/template.php b/lib/public/template.php
index ccf19cf052c..5f9888f9f28 100644
--- a/lib/public/template.php
+++ b/lib/public/template.php
@@ -54,6 +54,15 @@ function mimetype_icon( $mimetype ) {
return(\mimetype_icon( $mimetype ));
}
+/**
+ * @brief make preview_icon available as a simple function
+ * Returns the path to the preview of the image.
+ * @param $path path of file
+ * @returns link to the preview
+ */
+function preview_icon( $path ) {
+ return(\preview_icon( $path ));
+}
/**
* @brief make OC_Helper::humanFileSize available as a simple function