From a59f72b183c99622c9c32032a0205fefe7d43f96 Mon Sep 17 00:00:00 2001 From: hartvig Date: Mon, 19 Jul 2010 10:16:32 +0000 Subject: [PATCH] Fixes 28158, issues with the folder browser datatype and thumbnails [TFS Changeset #73322] --- components/editorControls/folderbrowser/folderBrowser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/editorControls/folderbrowser/folderBrowser.cs b/components/editorControls/folderbrowser/folderBrowser.cs index 0467f13326..4c7fc30d42 100644 --- a/components/editorControls/folderbrowser/folderBrowser.cs +++ b/components/editorControls/folderbrowser/folderBrowser.cs @@ -60,10 +60,10 @@ namespace umbraco.editorControls // Check for thumbnail! string fileNameOrg = p.Value.ToString(); string ext = fileNameOrg.Substring(fileNameOrg.LastIndexOf(".")+1, fileNameOrg.Length-fileNameOrg.LastIndexOf(".")-1); - string fileNameThumb = SystemDirectories.Root + fileNameOrg.Replace("."+ext, "_thumb.jpg"); - if (File.Exists(IOHelper.MapPath(fileNameThumb))) + string fileNameThumb = fileNameOrg.Replace("."+ext, "_thumb.jpg"); + if (File.Exists(IOHelper.MapPath(IOHelper.FindFile(fileNameThumb)))) { - writer.WriteLine("\""   "); + writer.WriteLine("\""   "); } } }