Added check composer install

This commit is contained in:
Vasily Komrakov 2017-02-06 00:07:47 +03:00
commit 71e351911a
No known key found for this signature in database
GPG key ID: 558236680C20A69A

View file

@ -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 <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>');
}
require_once __DIR__ . '/vendor/autoload.php';
// Get initial config
require(BB_ROOT . 'library/config.php');