public static function pendCountersRecalculation() { $optionCountersBrokeDetected = (int) COption::GetOptionString('tasks', '~counters_broke_detected', -1, $siteId = ''); // check if the agent event exists CTaskCountersProcessor::ensureAgentExists(); if ($optionCountersBrokeDetected !== 1) { COption::SetOptionString('tasks', '~counters_broke_detected', 1, $description = '', $siteId = ''); } }
foreach ($arSites as $site) { foreach ($arDefaultValues as $key => $value) { if (isset($_POST[$key . "_" . $site["LID"]])) { COption::SetOptionString("tasks", $key, $_POST[$key . "_" . $site["LID"]], false, $site["LID"]); } } } if (strlen($Update) > 0 && strlen($_REQUEST["back_url_settings"]) > 0) { LocalRedirect($_REQUEST["back_url_settings"]); } else { LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($mid) . "&lang=" . urlencode(LANGUAGE_ID) . "&back_url_settings=" . urlencode($_REQUEST["back_url_settings"]) . "&" . $tabControl->ActiveTabParam()); } } } // check and restore CTaskCountersProcessor::agent();, if there is no one CTaskCountersProcessor::ensureAgentExists(); ?> <form method="post" action="<?php echo $APPLICATION->GetCurPage(); ?> ?mid=<?php echo htmlspecialcharsbx($mid); ?> &lang=<?php echo LANG; ?> "> <?php echo bitrix_sessid_post(); $tabControl->Begin(); $tabControl->BeginNextTab();