diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 11:58:52 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 11:58:52 +0200 |
commit | 53830f2f751151d2d326b253471e63d9b1cf8eb1 (patch) | |
tree | d7f7dd05d101a6383193b1a33bd83ce8e8120498 /lib/helper.php | |
parent | 06eca985ce493bba65293003bd52aed10566c6d6 (diff) | |
download | nextcloud-server-53830f2f751151d2d326b253471e63d9b1cf8eb1.tar.gz nextcloud-server-53830f2f751151d2d326b253471e63d9b1cf8eb1.zip |
implement use of previews in sharing app
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php index 856dba625b3..6153f318723 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -234,6 +234,10 @@ class OC_Helper { return self::linkToRoute( 'core_ajax_preview', array('x' => 44, 'y' => 44, 'file' => urlencode($path) )); } + public static function publicPreview_icon( $path, $token ) { + return self::linkToRoute( 'core_ajax_public_preview', array('x' => 44, 'y' => 44, 'file' => urlencode($path), 't' => $token)); + } + /** * @brief Make a human file size * @param int $bytes file size in bytes |