• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/update/assets/fontfix.php
  • Класс: BitrixLandingUpdateAssetsFontFix
  • Вызов: FontFix::execute
public function execute(array &$result): bool
{
	$res = HookDataTable::getList(
		[
			'select' => [
				'ID', 'VALUE'
			],
			'filter' => [
				'HOOK' => 'FONTS',
			],
		]
	);
	if (!$result['count'])
	{
		$result['count'] = count($res);
	}
	if (!$result['steps'])
	{
		$result['steps'] = 0;
	}

	if (!$result['checkedRows'])
	{
		$result['checkedRows'] = 0;
	}

	$countFixedRows = 0;
	$countRows = 0;
	while ($row = $res->fetch())
	{
		$result["steps"] = $result["steps"]++;
		if ($countRows > $result['checkedRows'])
		{
			$result['checkedRows']++;
			preg_match_all(
				'#(