• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/tests/site_configuration.php
  • Класс: CSecuritySiteConfigurationTest
  • Вызов: CSecuritySiteConfigurationTest::checkModulesVersion
protected function checkModulesVersion()
{
	try
	{
		$updates = static::getAvailableUpdates();
		if(!empty($updates))
		{
			$this->addUnformattedDetailError(
				"SECURITY_SITE_CHECKER_MODULES_VERSION",
				CSecurityCriticalLevel::HIGHT,
				getMessage("SECURITY_SITE_CHECKER_MODULES_VERSION_ARRITIONAL", array(
					"#MODULES#" => nl2br(htmlspecialcharsbx(join("n", $updates)))
				))
			);
			return self::STATUS_FAILED;
		}
	}
	catch (SystemException $e)
	{
		$this->addUnformattedDetailError("SECURITY_SITE_CHECKER_MODULES_VERSION_ERROR", CSecurityCriticalLevel::HIGHT);
		return self::STATUS_FAILED;
	}

	return self::STATUS_PASSED;
}