Use native __DIR__ for BB_PATH (#702)

This commit is contained in:
Roman Kelesidis 2023-05-21 23:13:28 +07:00 committed by GitHub
commit f7d9a1c53d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

View file

@ -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,