Fix skin path being ignored in extension agnostic lookups

Closes #2295.
This commit is contained in:
Dean Herbert 2018-03-30 17:53:13 +09:00
parent 7b34c83916
commit c39f056b3b
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ private string getPathForFile(string filename)
string lastPiece = filename.Split('/').Last();
var file = source.Files.FirstOrDefault(f =>
string.Equals(hasExtension ? f.Filename : Path.GetFileNameWithoutExtension(f.Filename), lastPiece, StringComparison.InvariantCultureIgnoreCase));
string.Equals(hasExtension ? f.Filename : Path.ChangeExtension(f.Filename, null), lastPiece, StringComparison.InvariantCultureIgnoreCase));
return file?.FileInfo.StoragePath;
}