introduce new theme function to allow full creation of documentation links: buildDocLinkToKey()

remotes/origin/ldap_group_count
Thomas Müller 11 years ago
parent 7f7d674c2a
commit 574883c47a
  1. 7
      lib/private/defaults.php
  2. 2
      lib/private/helper.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;
}
}

@ -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…
Cancel
Save