Skip to content

Commit

Permalink
The correct check of load Bitrix
Browse files Browse the repository at this point in the history
  • Loading branch information
niksamokhvalov committed Jan 8, 2016
1 parent 207c11f commit c499794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license MIT
*/

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) return false;

$manager = \Bitrix\Main\EventManager::getInstance();

Expand All @@ -21,4 +21,4 @@

$manager->addEventHandler('iblock', 'OnAfterIBlockAdd', ['\Bex\Tools\Iblock\IblockFinder', 'onAfterIBlockAdd']);
$manager->addEventHandler('iblock', 'OnAfterIBlockUpdate', ['\Bex\Tools\Iblock\IblockFinder', 'onAfterIBlockUpdate']);
$manager->addEventHandler('iblock', 'OnIBlockDelete', ['\Bex\Tools\Iblock\IblockFinder', 'onIBlockDelete']);
$manager->addEventHandler('iblock', 'OnIBlockDelete', ['\Bex\Tools\Iblock\IblockFinder', 'onIBlockDelete']);

0 comments on commit c499794

Please sign in to comment.