1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00
This commit is contained in:
Alexey Kachayev 2010-02-09 15:16:17 +00:00
parent 3d978c52be
commit 0e8ca8b89a

View file

@ -973,8 +973,11 @@ class LsViewer extends Module {
* @return string
*/
protected function GetWebPath($sFile) {
$sFile=str_replace(DIRECTORY_SEPARATOR,'/',$sFile);
return str_replace(Config::Get('path.root.server'),Config::Get('path.root.web'),$sFile);
return str_replace(
str_replace(DIRECTORY_SEPARATOR,'/',Config::Get('path.root.server')),
Config::Get('path.root.web'),
str_replace(DIRECTORY_SEPARATOR,'/',$sFile)
);
}
/**
* Преобразует WEB-путь файла в серверный вариант