- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile.php
- Класс: BitrixIntranetComponentUserProfile
- Вызов: UserProfile::processShowYear
protected function processShowYear()
{
$existingValue = Option::get("intranet", "user_profile_show_year", "Y");
$actualValue = 'Y';
if (ModuleManager::isModuleInstalled('bitrix24'))
{
if (Option::get("intranet", "show_year_for_female", "N") === "N")
{
$actualValue = 'N';
}
}
elseif (
isset($this->arParams['SHOW_YEAR'])
&& in_array($this->arParams['SHOW_YEAR'], ['Y', 'M', 'N'])
)
{
$actualValue = $this->arParams['SHOW_YEAR'];
}
if ($actualValue != $existingValue)
{
Option::set("intranet", "user_profile_show_year", $actualValue);
}
}