mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
Fix
This commit is contained in:
parent
3d978c52be
commit
0e8ca8b89a
|
@ -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-путь файла в серверный вариант
|
||||
|
|
Loading…
Reference in a new issue