- Timestamp:
- Sep 4, 2018, 2:33:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Handlers/ItemIconHandler.cs
r325 r326 37 37 requestFileName = requestFileName.Remove (requestFileName.LastIndexOf ('.')); 38 38 39 if (icons.ContainsKey (requestFileName) && req.Url.AbsolutePath. ToLower ().EndsWith (".png")) {39 if (icons.ContainsKey (requestFileName) && req.Url.AbsolutePath.EndsWith (".png", StringComparison.OrdinalIgnoreCase)) { 40 40 resp.ContentType = MimeType.GetMimeType (".png"); 41 41 … … 128 128 foreach (string file in Directory.GetFiles (modIconsPath)) { 129 129 try { 130 if (file. ToLower ().EndsWith (".png")) {130 if (file.EndsWith (".png", StringComparison.OrdinalIgnoreCase)) { 131 131 string name = Path.GetFileNameWithoutExtension (file); 132 132 Texture2D tex = new Texture2D (1, 1, TextureFormat.ARGB32, false);
Note:
See TracChangeset
for help on using the changeset viewer.