From 235972403114d7ada47dab96bfe95aacdc0a482f Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 9 Jun 2025 14:12:01 +0300 Subject: [PATCH] Updated --- _cleanup.php | 3 ++- install.php | 3 ++- library/includes/functions_cli.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_cleanup.php b/_cleanup.php index bc6e3cebe..bd9555788 100644 --- a/_cleanup.php +++ b/_cleanup.php @@ -9,6 +9,7 @@ if (!defined('BB_ROOT')) { define('BB_ROOT', __DIR__ . DIRECTORY_SEPARATOR); + define('BB_PATH', BB_ROOT); } // Check CLI mode @@ -18,7 +19,7 @@ if (php_sapi_name() !== 'cli') { if (!function_exists('removeFile')) { // Get all constants - require_once BB_PATH . '/library/defines.php'; + require_once BB_ROOT . 'library/defines.php'; // Include CLI functions require INC_DIR . '/functions_cli.php'; diff --git a/install.php b/install.php index c91e3f938..009098420 100644 --- a/install.php +++ b/install.php @@ -8,6 +8,7 @@ */ define('BB_ROOT', __DIR__ . DIRECTORY_SEPARATOR); +define('BB_PATH', BB_ROOT); // Check CLI mode if (php_sapi_name() !== 'cli') { @@ -15,7 +16,7 @@ if (php_sapi_name() !== 'cli') { } // Get all constants -require_once BB_PATH . '/library/defines.php'; +require_once BB_ROOT . 'library/defines.php'; // Include CLI functions require INC_DIR . '/functions_cli.php'; diff --git a/library/includes/functions_cli.php b/library/includes/functions_cli.php index 96390a88d..4c566b792 100644 --- a/library/includes/functions_cli.php +++ b/library/includes/functions_cli.php @@ -44,7 +44,7 @@ function removeDir(string $dir, bool $withoutOutput = false): void foreach ($files as $file) { if ($file->isDir()) { - removeDir($file->getPathname()); + removeDir($file->getPathname(), $withoutOutput); } else { removeFile($file->getPathname(), $withoutOutput); }