Merge pull request #6559 from tobiasd/20190130-admininiwarning

warn in admin panel when legacy config is used
This commit is contained in:
Hypolite Petovan
2019-01-30 07:14:19 -05:00
committed by GitHub

View File

@@ -936,6 +936,10 @@ function admin_page_summary(App $a)
$showwarning = true; $showwarning = true;
$warningtext[] = L10n::t('Friendica\'s configuration now is stored in config/local.config.php, please copy config/local-sample.config.php and move your config from <code>.htconfig.php</code>. See <a href="%s">the Config help page</a> for help with the transition.', $a->getBaseURL() . '/help/Config'); $warningtext[] = L10n::t('Friendica\'s configuration now is stored in config/local.config.php, please copy config/local-sample.config.php and move your config from <code>.htconfig.php</code>. See <a href="%s">the Config help page</a> for help with the transition.', $a->getBaseURL() . '/help/Config');
} }
if (file_exists('config/local.ini.php')) {
$showwarning = true;
$warningtext[] = L10n::t('Friendica\'s configuration now is stored in config/local.config.php, please copy config/local-sample.config.php and move your config from <code>config/local.ini.php</code>. See <a href="%s">the Config help page</a> for help with the transition.', $a->getBaseURL() . '/help/Config');
}
// Check server vitality // Check server vitality
if (!admin_page_server_vital()) { if (!admin_page_server_vital()) {