Skip to content

Commit

Permalink
Merge pull request #38900 from tanganellilore/add_theming_doc_url
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Jun 29, 2023
2 parents c7ea6ce + cc239f5 commit 5b7f81b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/theming/lib/ThemingDefaults.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 5b7f81b

Please sign in to comment.