diff --git a/library/defines.php b/library/defines.php index 2692fec8d..b7a4d674c 100644 --- a/library/defines.php +++ b/library/defines.php @@ -11,6 +11,11 @@ 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, @@ -29,11 +34,6 @@ define('CHECK_REQIREMENTS', [ ], ]); -// Root path -$rootPath = __DIR__; -if (DIRECTORY_SEPARATOR != '/') $rootPath = str_replace(DIRECTORY_SEPARATOR, '/', $rootPath); -define('BB_PATH', dirname($rootPath)); - // Path (trailing slash '/' at the end: XX_PATH - without, XX_DIR - with) define('ADMIN_DIR', BB_PATH . '/admin'); define('DATA_DIR', BB_PATH . '/data');