summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-03 18:13:45 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-03 21:51:32 +0200
commit1a461924336f8ab227c135e13d7661b7a4f1e1df (patch)
tree3a4236425f21c926317593f444f4d4909cb2819a /lib/template.php
parent38116c7efa2b922c2fa0eaa48eb538e8bb420f57 (diff)
downloadnextcloud-server-1a461924336f8ab227c135e13d7661b7a4f1e1df.tar.gz
nextcloud-server-1a461924336f8ab227c135e13d7661b7a4f1e1df.zip
Add args parameter to linkTo(Absolute) function, to append the args automaticly
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/template.php b/lib/template.php
index fa8d4192615..2359bd50c46 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -25,12 +25,13 @@
* @brief make OC_Helper::linkTo available as a simple function
* @param $app app
* @param $file file
+ * @param $args array with param=>value, will be appended to the returned url
* @returns link to the file
*
* For further information have a look at OC_Helper::linkTo
*/
-function link_to( $app, $file ){
- return OC_Helper::linkTo( $app, $file );
+function link_to( $app, $file, $args = array() ){
+ return OC_Helper::linkTo( $app, $file, $args );
}
/**