|
@@ -266,7 +266,9 @@ Var
|
|
begin
|
|
begin
|
|
T:=FindMimeByType(AMimeType);
|
|
T:=FindMimeByType(AMimeType);
|
|
if Assigned(T) then
|
|
if Assigned(T) then
|
|
- Result:=T.Extensions;
|
|
|
|
|
|
+ Result:=T.Extensions
|
|
|
|
+ else
|
|
|
|
+ Result:='';
|
|
end;
|
|
end;
|
|
|
|
|
|
function TFPMimeTypes.GetMimeType(const AExtension: String): String;
|
|
function TFPMimeTypes.GetMimeType(const AExtension: String): String;
|
|
@@ -276,7 +278,9 @@ Var
|
|
begin
|
|
begin
|
|
T:=FindMimeByExt(AExtension);
|
|
T:=FindMimeByExt(AExtension);
|
|
if Assigned(T) then
|
|
if Assigned(T) then
|
|
- Result:=T.MimeType;
|
|
|
|
|
|
+ Result:=T.MimeType
|
|
|
|
+ else
|
|
|
|
+ Result:='';
|
|
end;
|
|
end;
|
|
|
|
|
|
function TFPMimeTypes.GetKnownMimeTypes(AList: TStrings): Integer;
|
|
function TFPMimeTypes.GetKnownMimeTypes(AList: TStrings): Integer;
|