Fixes images upload

main
Yasen Pramatarov 2026-03-17 13:33:17 +02:00
parent 0af09cb4d1
commit 32edadc0f9
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ if (!function_exists('core_public_root')) {
if (defined('APP_ROOT')) { if (defined('APP_ROOT')) {
$projectRoot = rtrim(APP_ROOT, DIRECTORY_SEPARATOR); $projectRoot = rtrim(APP_ROOT, DIRECTORY_SEPARATOR);
} else { } else {
$projectRoot = dirname(__DIR__, 1); $projectRoot = dirname(__DIR__, 2);
} }
return $projectRoot . DIRECTORY_SEPARATOR . 'public_html'; return $projectRoot . DIRECTORY_SEPARATOR . 'public_html';
} }