Skip to content
Snippets Groups Projects
Commit 8759c35e authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

Merge pull request #7399 from owncloud/themable-doc-links

introduce new theme function to allow full creation of documentation lin...
parents 37a2f8c6 574883c4
Branches
No related tags found
No related merge requests found
......@@ -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;
}
}
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment