From 32ccd6621465457fe95c77b4be9f9e0b3ec819ba Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 11 Aug 2015 14:20:25 +0200 Subject: Revert "make knowledge base url configurable" This reverts commit 8fb89056bd2f99b1df7dc7a3970fc293272c8ab6. --- lib/private/defaults.php | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'lib/private/defaults.php') diff --git a/lib/private/defaults.php b/lib/private/defaults.php index b86805357bd..16f45943f54 100644 --- a/lib/private/defaults.php +++ b/lib/private/defaults.php @@ -46,11 +46,9 @@ class OC_Defaults { private $defaultSlogan; private $defaultLogoClaim; private $defaultMailHeaderColor; - private $defaultKnowledgeBaseUrl; function __construct() { $this->l = \OC::$server->getL10N('lib'); - $urlGenerator = \OC::$server->getURLGenerator(); $version = OC_Util::getVersion(); $this->defaultEntity = 'ownCloud'; /* e.g. company name, used for footers and copyright notices */ @@ -66,7 +64,6 @@ class OC_Defaults { $this->defaultSlogan = $this->l->t('web services under your control'); $this->defaultLogoClaim = ''; $this->defaultMailHeaderColor = '#1d2d44'; /* header color of mail notifications */ - $this->defaultKnowledgeBaseUrl = $urlGenerator->linkToRoute('settings_help'); $themePath = OC::$SERVERROOT . '/themes/' . OC_Util::getTheme() . '/defaults.php'; if (file_exists($themePath)) { @@ -82,7 +79,6 @@ class OC_Defaults { /** * @param string $method - * @return bool */ private function themeExist($method) { if (isset($this->theme) && method_exists($this->theme, $method)) { @@ -284,19 +280,4 @@ class OC_Defaults { } } - /** - * get knowledge base URL, will be used for the "Help"-Link in the top - * right menu - * - * @return string - */ - public function getKnowledgeBaseUrl() { - if ($this->themeExist('getKnowledgeBaseUrl')) { - return $this->theme->getKnowledgeBaseUrl(); - } else { - return $this->defaultKnowledgeBaseUrl; - } - - } - } -- cgit v1.2.3