Skip to content

Commit

Permalink
Fixes an issue where sites on non-standard paths would not display th…
Browse files Browse the repository at this point in the history
…eir thumbnail properly.


Fixes #6263
  • Loading branch information
thienvc authored Dec 11, 2024
1 parent 12dae88 commit 9f38f8d
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,6 @@ internal static string CreateThumbnail(string strImage)
var imageFileName = Path.GetFileName(strImage);
if (string.IsNullOrEmpty(imageFileName) || imageFileName.StartsWith("thumbnail_"))
{
// Fix #6263
// strImage = Globals.ApplicationPath + "/" + strImage.Substring(strImage.IndexOf("portals\\"));
strImage = strImage.Substring(Globals.ApplicationMapPath.Length);
strImage = strImage.Replace("\\", "/");
return strImage;
Expand Down Expand Up @@ -441,8 +439,6 @@ internal static string CreateThumbnail(string strImage)
}
}

// Fix #6263
// strThumbnail = Globals.ApplicationPath + "/" + strThumbnail.Substring(strThumbnail.IndexOf("portals\\"));
strThumbnail = strThumbnail.Substring(Globals.ApplicationMapPath.Length);
strThumbnail = strThumbnail.Replace("\\", "/");

Expand Down

0 comments on commit 9f38f8d

Please sign in to comment.