From 574883c47a45940f53a7603fb4e107cd7093a741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 25 Feb 2014 23:06:23 +0100 Subject: [PATCH] introduce new theme function to allow full creation of documentation links: buildDocLinkToKey() --- lib/private/defaults.php | 7 +++++++ lib/private/helper.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/private/defaults.php b/lib/private/defaults.php index 0b97497baa1..59630cda5c0 100644 --- a/lib/private/defaults.php +++ b/lib/private/defaults.php @@ -174,4 +174,11 @@ class OC_Defaults { return $footer; } + public function buildDocLinkToKey($key) { + if ($this->themeExist('buildDocLinkToKey')) { + return $this->theme->buildDocLinkToKey($key); + } + return $this->getDocBaseUrl() . '/server/6.0/go.php?to=' . $key; + } + } diff --git a/lib/private/helper.php b/lib/private/helper.php index 1aab2f296e1..d8c4650f666 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -64,7 +64,7 @@ class OC_Helper { */ public static function linkToDocs($key) { $theme = new OC_Defaults(); - return $theme->getDocBaseUrl() . '/server/6.0/go.php?to=' . $key; + return $theme->buildDocLinkToKey($key); } /**