1
0
mirror of synced 2024-11-28 16:26:07 +03:00
bitrix-module/intaro.retailcrm/updater.php
Neur0toxine 4125565570
Ability to disable payment passthrough (#140)
* optional payment total in the order
* updater won't fail in case of error
2020-09-25 12:17:29 +03:00

30 lines
726 B
PHP

<?php
$rcrmVersionFile = __DIR__ . '/install/version.php';
if(!CModule::IncludeModule('intaro.retailcrm')
|| !CModule::IncludeModule('sale')
|| !CModule::IncludeModule('iblock')
|| !CModule::IncludeModule('catalog')
|| !file_exists($rcrmVersionFile)
) {
return;
}
include_once $rcrmVersionFile;
if (!isset($arModuleVersion['VERSION'])) {
return;
}
$rcrmCurrentUpdateFile = __DIR__ . '/update/' . sprintf('updater-%s.php', $arModuleVersion['VERSION']);
if (file_exists($rcrmCurrentUpdateFile)) {
include_once $rcrmCurrentUpdateFile;
$functionName = 'update_' . str_replace('.', '_', $arModuleVersion['VERSION']);
if (function_exists($functionName)) {
$functionName();
}
}