public static function checkSettings()
{
$warnings = array();
// check if debug-mode is active
if (BackendModel::getContainer()->getParameter('kernel.debug')) {
$warnings[] = array('message' => BackendLanguage::err('DebugModeIsActive'));
}
// check if this action is allowed
if (Authentication::isAllowedAction('Index', 'Settings')) {
// check if the fork API keys are available
if (self::get('fork.settings')->get('Core', 'fork_api_private_key') == '' || self::get('fork.settings')->get('Core', 'fork_api_public_key') == '') {
$warnings[] = array('message' => sprintf(BackendLanguage::err('ForkAPIKeys'), self::createURLForAction('Index', 'Settings')));
}
}
// check for extensions warnings
$warnings = array_merge($warnings, BackendExtensionsModel::checkSettings());
return $warnings;
}