]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/style.php
make erromessages translateable
[friendica.git] / view / theme / frio / style.php
index 81d750d0a12b11a0525b1da5847c3cab8d920e54..479793b5962222fa4a9f9e9bf3bd467a1aeef4e1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -49,7 +49,7 @@ $login_bg_color   = '';
 $modified         = time();
 
 if (DI::mode()->has(\Friendica\App\Mode::MAINTENANCEDISABLED)) {
-       DI::config()->load('frio');
+       DI::config()->reload();
 
        // Default to hard-coded values for empty settings
        $scheme           = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema'));
@@ -123,7 +123,7 @@ if (!$scheme) {
        }
 }
 
-$contentbg_transp = $contentbg_transp ?? 0 ?: 100;
+$contentbg_transp = $contentbg_transp != '' ? $contentbg_transp : 100;
 
 // Calculate some colors in dependance of existing colors.
 // Some colors are calculated to don't have too many selection