From cc239f5059089e376260351977911efcc146a1db Mon Sep 17 00:00:00 2001 From: Lorenzo Tanganelli Date: Mon, 19 Jun 2023 12:13:38 +0000 Subject: [PATCH] add getDocBaseUrl that exted default Signed-off-by: Lorenzo Tanganelli --- apps/theming/lib/ThemingDefaults.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 454e050554350..7de87389f18ba 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -71,6 +71,7 @@ class ThemingDefaults extends \OC_Defaults { private string $productName; private string $url; private string $color; + private string $docBaseUrl; private string $iTunesAppId; private string $iOSClientUrl; @@ -120,6 +121,7 @@ public function __construct(IConfig $config, $this->iOSClientUrl = parent::getiOSClientUrl(); $this->AndroidClientUrl = parent::getAndroidClientUrl(); $this->FDroidClientUrl = parent::getFDroidClientUrl(); + $this->docBaseUrl = parent::getDocBaseUrl(); } public function getName() { @@ -163,6 +165,10 @@ public function getPrivacyUrl() { return (string)$this->config->getAppValue('theming', 'privacyUrl', ''); } + public function getDocBaseUrl() { + return (string)$this->config->getAppValue('theming', 'docBaseUrl', $this->docBaseUrl); + } + public function getShortFooter() { $slogan = $this->getSlogan(); $baseUrl = $this->getBaseUrl();