30 lines
701 B
PHP
30 lines
701 B
PHP
<?php
|
|
|
|
use Bitrix\Main\Application;
|
|
use Bitrix\Main\EventManager;
|
|
use Bitrix\Main\Loader;
|
|
|
|
if(!Loader::includeModule('wt.core')){
|
|
return false;
|
|
}
|
|
|
|
if(!Loader::includeModule('ixrs.catalog')){
|
|
return false;
|
|
}
|
|
|
|
if(catalog_base_app()->isIncludeFileToInitPhp()){
|
|
return false;
|
|
}
|
|
catalog_base_app()->isIncludeFileToInitPhp(true);
|
|
|
|
$isAdminSection = \Bitrix\Main\Application::getInstance()->getContext()->getRequest()->isAdminSection();
|
|
|
|
|
|
$dbType = Application::getConnection()->getType();
|
|
Loader::includeModule('iblock');
|
|
$arClasses = [
|
|
'Bitrix\Iblock\Component\ElementList' => 'modules/iblock/lib/component/elementlist.php',
|
|
];
|
|
|
|
Loader::registerAutoLoadClasses('ixrs.catalog', $arClasses);
|