mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-05 12:08:42 +00:00
normalize path for correct output NO_CI
This commit is contained in:
parent
52b2ecf398
commit
81ea624099
|
|
@ -337,7 +337,7 @@ class Media implements \JsonSerializable
|
|||
*/
|
||||
public function getPath() : string
|
||||
{
|
||||
return $this->path;
|
||||
return $this->isAbsolute ? $this->path : \ltrim($this->path, '/');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user