diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-03-29 13:36:45 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-03-29 13:36:45 -0700 |
commit | 4f8e916585889b99247d967d51325ac0c840ec59 (patch) | |
tree | 67e9b24aa50f033cf88d52f53b648bb2bd30aab4 /lib/private/TemplateLayout.php | |
parent | fc371facd202d7ede86f1adb37fc78a8c478deff (diff) | |
download | nextcloud-server-4f8e916585889b99247d967d51325ac0c840ec59.tar.gz nextcloud-server-4f8e916585889b99247d967d51325ac0c840ec59.zip |
Add label for logo link
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r-- | lib/private/TemplateLayout.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index d127443944f..123fd6debb5 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -119,10 +119,16 @@ class TemplateLayout extends \OC_Template { $this->assign('enabledThemes', $themesService->getEnabledThemes()); } - // set logo link target + // Set logo link target $logoUrl = $this->config->getSystemValueString('logo_url', ''); $this->assign('logoUrl', $logoUrl); + // Set default app name + $defaultApp = \OC::$server->getAppManager()->getDefaultAppForUser(); + $defaultAppInfo = \OC::$server->getAppManager()->getAppInfo($defaultApp); + $l10n = \OC::$server->getL10NFactory()->get($defaultApp); + $this->assign('defaultAppName', $l10n->t($defaultAppInfo['name'])); + // Add navigation entry $this->assign('application', ''); $this->assign('appid', $appId); |