- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/internals/updater.php
- Класс: BitrixIntranetInternalsUpdater
- Вызов: Updater::exec
public function exec()
{
if ($this->updater->canUpdateKernel())
{
$this->syncKernel('install/wizards/bitrix', 'wizards/bitrix');
$this->syncKernel('install/templates', 'templates');
}
if ($this->updater->canUpdatePersonalFiles())
{
if (is_dir($this->updaterPath . '/install/public/bitrix24'))
{
if (is_dir($this->kernelPath . '/wizards/bitrix/bitrix24') || isModuleInstalled('bitrix24'))
{
if (!is_dir($this->kernelPath . '/wizards/bitrix/portal'))
{
CUpdateSystem::copyDirFiles($this->updaterPath.'/install/public/bitrix24', $this->documentRoot, $error);
if (defined('BX_COMP_MANAGED_CACHE'))
{
global $CACHE_MANAGER;
$CACHE_MANAGER->clearByTag('bitrix24_left_menu');
}
}
}
}
if (is_dir($this->updaterPath . '/install/public/pub'))
{
CUpdateSystem::copyDirFiles($this->updaterPath.'/install/public/pub', $this->documentRoot.'/pub', $error);
}
if (!empty($this->params['personal']) && is_array($this->params['personal']))
{
if (is_dir($this->kernelPath . '/wizards/bitrix/portal'))
{
$this->syncPersonal('portal', $this->params['personal']);
}
}
}
if ($this->updater->canUpdateKernel())
{
foreach (array('portal', 'portal_clear') as $item)
{
if (is_dir($this->updaterPath . '/install/wizards/bitrix/'.$item))
{
CUpdateSystem::deleteDirFilesEx($this->updaterPath.'/install/wizards/bitrix/'.$item);
}
if (is_dir($this->kernelPath . '/modules/intranet/install/wizards/bitrix/'.$item))
{
CUpdateSystem::deleteDirFilesEx($this->kernelPath.'/modules/intranet/install/wizards/bitrix/'.$item);
}
}
}
}