1
0
Fork 0
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:
Alexey Kachayev 2010-03-06 19:16:11 +00:00
parent 4a8f3da512
commit 88c48c7bda

View file

@ -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));
}
/**
* Получает директорию для данного пользователя