From 71e351911a8d31829173e942437907e1aef9277b Mon Sep 17 00:00:00 2001 From: Vasily Komrakov Date: Mon, 6 Feb 2017 00:07:47 +0300 Subject: [PATCH] Added check composer install --- common.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 69a85b0bc..73abee96f 100644 --- a/common.php +++ b/common.php @@ -54,7 +54,11 @@ if (!defined('IN_FORUM') && !defined('IN_TRACKER')) { header('X-Frame-Options: SAMEORIGIN'); // Composer -require_once(BB_ROOT . 'vendor/autoload.php'); +if (!file_exists(__DIR__ . '/vendor/autoload.php')) { + die('Please install composer and run composer install'); +} + +require_once __DIR__ . '/vendor/autoload.php'; // Get initial config require(BB_ROOT . 'library/config.php');