Fix paths for db and uploads dir in debug

This commit is contained in:
johnnyq 2025-09-03 18:42:32 -04:00
parent 46d93f986e
commit d7d6e4ac6f
1 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ $filePermissions[] = [
$uploadsStats = [];
// Define the uploads directory path
$uploadsDir = __DIR__ . '/uploads'; // Adjust the path if needed
$uploadsDir = __DIR__ . '/../uploads'; // Adjust the path if needed
if (is_dir($uploadsDir)) {
// Function to recursively count files and calculate total size
@ -349,7 +349,7 @@ if ($tablesResult) {
$dbComparison = [];
// Path to the db.sql file
$dbSqlFile = __DIR__ . '/db.sql';
$dbSqlFile = __DIR__ . '/../db.sql';
if (file_exists($dbSqlFile)) {
// Read the db.sql file