summaryrefslogtreecommitdiffstats
path: root/lib/private/template/functions.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-11-26 10:48:08 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-11-26 13:58:43 +0100
commit675417a75c3c0d93838397b4670e2d26d53eb2fe (patch)
treed14e4cbeb4aaca161b970c4f54f95e8b75a472d9 /lib/private/template/functions.php
parent3882cc8ef37a28972a8fca35ca1cc26cc060e7bc (diff)
downloadnextcloud-server-675417a75c3c0d93838397b4670e2d26d53eb2fe.tar.gz
nextcloud-server-675417a75c3c0d93838397b4670e2d26d53eb2fe.zip
Untangle the linkToDocs method in OC_Helper
* now uses the proper URLGenerator interface * add comment about DI problems
Diffstat (limited to 'lib/private/template/functions.php')
-rw-r--r--lib/private/template/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php
index cea5860cec6..79d18632d2f 100644
--- a/lib/private/template/functions.php
+++ b/lib/private/template/functions.php
@@ -154,7 +154,7 @@ function link_to( $app, $file, $args = array() ) {
* @return string url to the online documentation
*/
function link_to_docs($key) {
- return OC_Helper::linkToDocs($key);
+ return \OC::$server->getURLGenerator()->linkToDocs($key);
}
/**