#
rbourque
I was testing out the Downloads module and uploaded my exim.conf as a test and got an exception error when viewing the file list.
Tracked it down to "public static string GetIconFilename(string extension)" method and made the following changes to allow for extensions that aren't listed. I'm sure it can be done more elegantly but I'm swamped with work today....
Keep up the good work Martijn!
Tracked it down to "public static string GetIconFilename(string extension)" method and made the following changes to allow for extensions that aren't listed. I'm sure it can be done more elegantly but I'm swamped with work today....
public static string GetIconFilename(string extension)
{
if (fileTypesMap == null)
{
InitMap();
}
string iconFilename;
try
{
iconFilename = fileTypesMap[extension].ToString();
}
catch (Exception)
{
iconFilename = null;
}
finally
{
if (iconFilename == null)
{
iconFilename = "file.gif";
}
}
return iconFilename;
}
Keep up the good work Martijn!