summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-18 22:48:09 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-18 22:48:09 +0200
commitb7a4972218ccaa1f030762783cd41a965095e741 (patch)
tree98fc7c22c0561157fcc8e7ad17f7d0d2b6239dba
parentd2a31bcd9365f8158a30e12ec8ef09b438f49bcb (diff)
parenteb62e7cc275eef590dded9602e25051b11009364 (diff)
downloadnextcloud-server-b7a4972218ccaa1f030762783cd41a965095e741.tar.gz
nextcloud-server-b7a4972218ccaa1f030762783cd41a965095e741.zip
Merge pull request #15728 from owncloud/update-iurlgenerator-doc
IUrlGenerator - document linkTo properly
-rw-r--r--lib/public/iurlgenerator.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/iurlgenerator.php b/lib/public/iurlgenerator.php
index 4324a4b5a97..3be27d87fa1 100644
--- a/lib/public/iurlgenerator.php
+++ b/lib/public/iurlgenerator.php
@@ -59,10 +59,12 @@ interface IURLGenerator {
* Returns an URL for an image or file
* @param string $appName the name of the app
* @param string $file the name of the file
+ * @param array $args array with param=>value, will be appended to the returned url
+ * The value of $args will be urlencoded
* @return string the url
* @since 6.0.0
*/
- public function linkTo($appName, $file);
+ public function linkTo($appName, $file, $args = array());
/**
* Returns the link to an image, like linkTo but only with prepending img/