From 88c48c7bda6a83e85ce434cdc473411d53256fd5 Mon Sep 17 00:00:00 2001 From: Alexey Kachayev Date: Sat, 6 Mar 2010 19:16:11 +0000 Subject: [PATCH] Fix web path generation in Image module --- engine/modules/image/Image.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/modules/image/Image.class.php b/engine/modules/image/Image.class.php index de5c57a5..0ae384f6 100644 --- a/engine/modules/image/Image.class.php +++ b/engine/modules/image/Image.class.php @@ -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)); } /** * Получает директорию для данного пользователя