mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-03 11:18:40 +00:00
Fix upload path
This commit is contained in:
parent
fa96dd5612
commit
fddbfc5dc2
|
|
@ -277,7 +277,11 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
|
||||
private static function normalizeDbPath(string $path) : string
|
||||
{
|
||||
return str_replace('\\', '/', str_replace(realpath(__DIR__ . '/../../') . '/', '', rtrim($path, '/')));
|
||||
return str_replace('\\', '/',
|
||||
str_replace(realpath(__DIR__ . '/../../'), '',
|
||||
rtrim($path, '/')
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user