fix
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?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);
|
||||
Reference in New Issue
Block a user