File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ class ThemingDefaults extends \OC_Defaults {
7070 /** @var string */
7171 private $ url ;
7272 /** @var string */
73- private $ slogan ;
74- /** @var string */
7573 private $ color ;
7674
7775 /** @var string */
@@ -115,7 +113,6 @@ public function __construct(IConfig $config,
115113 $ this ->title = parent ::getTitle ();
116114 $ this ->entity = parent ::getEntity ();
117115 $ this ->url = parent ::getBaseUrl ();
118- $ this ->slogan = parent ::getSlogan ();
119116 $ this ->color = parent ::getColorPrimary ();
120117 $ this ->iTunesAppId = parent ::getiTunesAppId ();
121118 $ this ->iOSClientUrl = parent ::getiOSClientUrl ();
@@ -143,7 +140,7 @@ public function getBaseUrl() {
143140 }
144141
145142 public function getSlogan () {
146- return \OCP \Util::sanitizeHTML ($ this ->config ->getAppValue ('theming ' , 'slogan ' , $ this -> slogan ));
143+ return \OCP \Util::sanitizeHTML ($ this ->config ->getAppValue ('theming ' , 'slogan ' , parent :: getSlogan () ));
147144 }
148145
149146 public function getImprintUrl () {
Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ public function __construct( $renderAs, $appId = '' ) {
140140 // Send the language and the locale to our layouts
141141 $ lang = \OC ::$ server ->getL10NFactory ()->findLanguage ();
142142 $ locale = \OC ::$ server ->getL10NFactory ()->findLocale ($ lang );
143- $ localeLang = \OC ::$ server ->getL10NFactory ()->findLanguageFromLocale ('lib ' , $ locale );
144143
145144 $ lang = str_replace ('_ ' , '- ' , $ lang );
146145 $ this ->assign ('language ' , $ lang );
@@ -162,7 +161,7 @@ public function __construct( $renderAs, $appId = '' ) {
162161 if ($ this ->config ->getSystemValue ('installed ' , false ) && $ renderAs != 'error ' ) {
163162 if (\OC ::$ server ->getContentSecurityPolicyNonceManager ()->browserSupportsCspV3 ()) {
164163 $ jsConfigHelper = new JSConfigHelper (
165- \OC ::$ server ->getL10N ('lib ' , $ localeLang ?: $ lang ),
164+ \OC ::$ server ->getL10N ('lib ' ),
166165 \OC ::$ server ->query (Defaults::class),
167166 \OC ::$ server ->getAppManager (),
168167 \OC ::$ server ->getSession (),
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ class OC_Defaults {
5252 private $ defaultTextColorPrimary ;
5353
5454 public function __construct () {
55- $ l10n = \OC ::$ server ->getL10N ('lib ' );
5655 $ config = \OC ::$ server ->getConfig ();
5756
5857 $ this ->defaultEntity = 'Nextcloud ' ; /* e.g. company name, used for footers and copyright notices */
@@ -65,7 +64,6 @@ public function __construct() {
6564 $ this ->defaultAndroidClientUrl = $ config ->getSystemValue ('customclient_android ' , 'https://play.google.com/store/apps/details?id=com.nextcloud.client ' );
6665 $ this ->defaultDocBaseUrl = 'https://docs.nextcloud.com ' ;
6766 $ this ->defaultDocVersion = \OC_Util::getVersion ()[0 ]; // used to generate doc links
68- $ this ->defaultSlogan = $ l10n ->t ('a safe home for all your data ' );
6967 $ this ->defaultColorPrimary = '#0082c9 ' ;
7068 $ this ->defaultTextColorPrimary = '#ffffff ' ;
7169
@@ -219,6 +217,10 @@ public function getSlogan() {
219217 if ($ this ->themeExist ('getSlogan ' )) {
220218 return $ this ->theme ->getSlogan ();
221219 } else {
220+ if ($ this ->defaultSlogan === null ) {
221+ $ l10n = \OC ::$ server ->getL10N ('lib ' );
222+ $ this ->defaultSlogan = $ l10n ->t ('a safe home for all your data ' );
223+ }
222224 return $ this ->defaultSlogan ;
223225 }
224226 }
You can’t perform that action at this time.
0 commit comments