From 16e07952e8e7719a8f0b312129e2bb1c52506dcc Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 21 May 2023 11:26:26 +0700 Subject: [PATCH] Update defines.php --- library/defines.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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');