]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Friendica.php
Posts from contacts can now be collapsed
[friendica.git] / src / Module / Friendica.php
index 37bd69da498102dc3fc4155a4fcfc34902244c03..bbcccd7dad843a3db3fc798e037cfac17f5b97c2 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
  *
@@ -42,6 +42,7 @@ class Friendica extends BaseModule
        protected function content(array $request = []): string
        {
                $config = DI::config();
+               $keyValue = DI::keyValue();
 
                $visibleAddonList = Addon::getVisibleList();
                if (!empty($visibleAddonList)) {
@@ -100,7 +101,7 @@ class Friendica extends BaseModule
                                '<strong>' . App::VERSION . '</strong>',
                                DI::baseUrl()->get(),
                                '<strong>' . $config->get('system', 'build') . '/' . DB_UPDATE_VERSION . '</strong>',
-                               '<strong>' . $config->get('system', 'post_update_version') . '/' . PostUpdate::VERSION . '</strong>'),
+                               '<strong>' . $keyValue->get('post_update_version') . '/' . PostUpdate::VERSION . '</strong>'),
                        'friendica' => DI::l10n()->t('Please visit <a href="https://friendi.ca">Friendi.ca</a> to learn more about the Friendica project.'),
                        'bugs'      => DI::l10n()->t('Bug reports and issues: please visit') . ' ' . '<a href="https://github.com/friendica/friendica/issues?state=open">' . DI::l10n()->t('the bugtracker at github') . '</a>',
                        'info'      => DI::l10n()->t('Suggestions, praise, etc. - please email "info" at "friendi - dot - ca'),
@@ -156,7 +157,7 @@ class Friendica extends BaseModule
 
                $visible_addons = Addon::getVisibleList();
 
-               $config->load('feature_lock');
+               $config->reload();
                $locked_features = [];
                $featureLocks = $config->get('config', 'feature_lock');
                if (isset($featureLocks)) {