mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Use native __DIR__ for BB_PATH (#702)
This commit is contained in:
parent
16e07952e8
commit
f7d9a1c53d
2 changed files with 8 additions and 12 deletions
|
@ -11,11 +11,6 @@ if (!defined('BB_ROOT')) {
|
|||
die(basename(__FILE__));
|
||||
}
|
||||
|
||||
// Root path
|
||||
$rootPath = __DIR__;
|
||||
if (DIRECTORY_SEPARATOR != '/') $rootPath = str_replace(DIRECTORY_SEPARATOR, '/', $rootPath);
|
||||
define('BB_PATH', dirname($rootPath));
|
||||
|
||||
// System
|
||||
define('CHECK_REQIREMENTS', [
|
||||
'status' => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue