[Pkg-owncloud-commits] [owncloud] 07/44: introduce new theme function to allow full creation of documentation links: buildDocLinkToKey()

David Prévot taffit at moszumanska.debian.org
Fri Mar 7 13:27:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit a88b253c78babeb1f4aa5115f6b84a93f76f0187
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Tue Feb 25 23:06:23 2014 +0100

    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 cec9a65..f9e7ce5 100644
--- a/lib/private/defaults.php
+++ b/lib/private/defaults.php
@@ -171,4 +171,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 4e5b453..4b462c8 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);
 	}
 
 	/**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list