Make user fields all provide the user.field service so that they can be easily recognised.

This commit is contained in:
ian%hixie.ch 2002-05-06 05:48:48 +00:00
parent 8c45554054
commit 3afbf82b63

View File

@ -39,7 +39,9 @@ use PLIF::Service;
sub provides {
my $class = shift;
my($service) = @_;
return ($service eq 'user.field.'.$class->type or $class->SUPER::provides($service));
return ($service eq 'user.field' or
$service eq 'user.field.'.$class->type or
$class->SUPER::provides($service));
}
# the 'data' field of field descriptions means different things