mirror of
https://github.com/nextcloud/server.git
synced 2024-09-10 12:47:13 +02:00
Merge pull request #7399 from owncloud/themable-doc-links
introduce new theme function to allow full creation of documentation lin...
This commit is contained in:
commit
8759c35e74
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user