mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-25 07:35:48 -07:00
Update common.php
This commit is contained in:
parent
0d250fff0e
commit
f3d21a0839
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ require_once BB_PATH . '/library/defines.php';
|
||||||
|
|
||||||
// Composer
|
// Composer
|
||||||
if (!is_file(BB_PATH . '/vendor/autoload.php')) {
|
if (!is_file(BB_PATH . '/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>');
|
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><br>Or run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">php ' . basename(__FILE__) . '</code> in CLI mode');
|
||||||
}
|
}
|
||||||
require_once BB_PATH . '/vendor/autoload.php';
|
require_once BB_PATH . '/vendor/autoload.php';
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ try {
|
||||||
$dotenv = Dotenv\Dotenv::createMutable(BB_PATH);
|
$dotenv = Dotenv\Dotenv::createMutable(BB_PATH);
|
||||||
$dotenv->load();
|
$dotenv->load();
|
||||||
} catch (\Dotenv\Exception\InvalidPathException $pathException) {
|
} catch (\Dotenv\Exception\InvalidPathException $pathException) {
|
||||||
die('Please rename from <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env.example</code> to <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env</code>, and configure it');
|
die('Please rename from <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env.example</code> to <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">.env</code>, and configure it.<br>Or run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">php ' . basename(__FILE__) . '</code> in CLI mode');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load config
|
// Load config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue