Branch: Tag:

1998-07-03

1998-07-03 12:06:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in type_from_filename().

Rev: server/base_server/configuration.pike:1.141

1: - string cvs_version = "$Id: configuration.pike,v 1.140 1998/07/02 13:28:45 grubba Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.141 1998/07/03 12:06:19 grubba Exp $";   #include <module.h>   #include <roxen.h>   
307:    nx=tmp2[-2];    if(nx && (tmp2=types_fun(nx)))    tmp[0] = tmp2[0]; -  else -  if(tmp2=types_fun("default")) +  else if(tmp2=types_fun("default"))    tmp[0] = tmp2[0];    else    tmp[0]="application/octet-stream";    } -  +  } else if(!(tmp = types_fun("default"))) { +  tmp = ({ "application/octet-stream", 0 }); +  }    return to?tmp:tmp[0]; -  } else { -  if(!(tmp=types_fun("default"))) -  tmp=({ "application/octet-stream", 0 }); +    } -  return 0; - } +       // Return an array with all provider modules that provides "provides".   array (object) get_providers(string provides)