From 207c11f2e597fc493819c9e814ed2e8e95a1f441 Mon Sep 17 00:00:00 2001 From: Nik Samokhvalov Date: Fri, 4 Dec 2015 19:20:55 +0300 Subject: [PATCH] Checks initialization of the Bitrix --- src/bootstrap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootstrap.php b/src/bootstrap.php index 151dd41..6ee233d 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -5,6 +5,8 @@ * @license MIT */ +if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); + $manager = \Bitrix\Main\EventManager::getInstance(); $manager->addEventHandler('main', 'OnBeforeGroupAdd', ['\Bex\Tools\Group\GroupTools', 'onBeforeGroupAdd']);