diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-27 15:46:05 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-27 20:37:38 -0400 |
commit | 0a9d1ed3a645efda56ae757f45aa7efb5a35ce4f (patch) | |
tree | a2fbdc55f42a149c8a5e738763ce731e9c55f6dc /lib/public/util.php | |
parent | 8374a49cc19cf43489a415388fd782ba1574ee82 (diff) | |
download | nextcloud-server-0a9d1ed3a645efda56ae757f45aa7efb5a35ce4f.tar.gz nextcloud-server-0a9d1ed3a645efda56ae757f45aa7efb5a35ce4f.zip |
Initial previewer for public links
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 9f6f6f32e1e..8d7303bf7a4 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -144,6 +144,17 @@ class Util { return(\OC_Helper::linkToRemote( $service )); } + /** + * @brief Creates an absolute url for public use + * @param $service id + * @returns the url + * + * Returns a absolute url to the given app and file. + */ + public static function linkToPublic($service) { + return \OC_Helper::linkToPublic($service); + } + /** * @brief Creates an url |