mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Added check composer install
This commit is contained in:
parent
8de3cbfba5
commit
71e351911a
1 changed files with 5 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue