fix: patient form/view field order, sync nav visibility, and backup 504

This commit is contained in:
SajjadMahmoody
2026-05-31 23:18:48 +03:30
parent d19191a320
commit 4a85e07804
5 changed files with 38 additions and 11 deletions
+4 -1
View File
@@ -43,7 +43,10 @@
set_time_limit(0);
ini_set('memory_limit', '256M');
$dbPath = database_path('database.sqlite');
$dbRaw = config('database.connections.sqlite.database', 'database/database.sqlite');
$dbPath = str_starts_with($dbRaw, '/') || preg_match('/^[A-Za-z]:/', $dbRaw)
? $dbRaw
: base_path($dbRaw);
if (! file_exists($dbPath)) {
abort(404, 'Database not found.');
}