Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-22 00:01:27 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-22 00:01:27 +0400
commit124984905e162160fe38d141d238c6102f549e9b (patch)
tree58e7a32a1622c8f5ea934fcf6a79654d3b4d0348 /lib/private/template
parent148d2616e554964b59c5acaebf76333e5ae7f5eb (diff)
introduce OC_Helper::linkToDocs()
Diffstat (limited to 'lib/private/template')
-rw-r--r--lib/private/template/functions.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php
index 94b87d1e507..ce42633b364 100644
--- a/lib/private/template/functions.php
+++ b/lib/private/template/functions.php
@@ -35,9 +35,12 @@ function link_to( $app, $file, $args = array() ) {
return OC_Helper::linkTo( $app, $file, $args );
}
+/**
+ * @param $key
+ * @return string url to the online documentation
+ */
function link_to_docs($key) {
- $theme = new OC_Defaults();
- return $theme->getDocBaseUrl() . '/server/5.0/go.php?to=' . $key;
+ return OC_Helper::linkToDocs($key);
}
/**