mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
Fix web path generation in Image module
This commit is contained in:
parent
4a8f3da512
commit
88c48c7bda
|
@ -241,7 +241,7 @@ class LsImage extends Module {
|
|||
public function GetWebPath($sPath) {
|
||||
$sServerPath = rtrim(str_replace(DIRECTORY_SEPARATOR,'/',Config::Get('path.root.server')),'/');
|
||||
$sWebPath = rtrim(Config::Get('path.root.web'), '/');
|
||||
return str_replace($sServerPath, $sWebPath, $sPath);
|
||||
return str_replace($sServerPath, $sWebPath, str_replace(DIRECTORY_SEPARATOR,'/',$sPath));
|
||||
}
|
||||
/**
|
||||
* Получает директорию для данного пользователя
|
||||
|
|
Loading…
Reference in a new issue