diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-08 22:05:13 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-08 22:05:13 +0100 |
commit | ed1dc3e064e4ca64fc2db2cecbd1f6bd48242b7b (patch) | |
tree | 5ed75fe36d184851fe7a835b6a6a5c071293a1df /lib/public/util.php | |
parent | 12bdc6ddb6021f772e8e6364eee89f1406ee3d7d (diff) | |
download | nextcloud-server-ed1dc3e064e4ca64fc2db2cecbd1f6bd48242b7b.tar.gz nextcloud-server-ed1dc3e064e4ca64fc2db2cecbd1f6bd48242b7b.zip |
Fix files router download links
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 968ca891b4c..5f6ede4460e 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -148,6 +148,20 @@ class Util { } /** + * @brief Creates an url using a defined route + * @param $route + * @param array $parameters + * @return + * @internal param array $args with param=>value, will be appended to the returned url + * @returns the url + * + * Returns a url to the given app and file. + */ + public static function linkToRoute( $route, $parameters = array() ) { + return \OC_Helper::linkToRoute($route, $parameters); + } + + /** * @brief Creates an url * @param string $app app * @param string $file file |