change ErrorHandler to Log

This commit is contained in:
Doug Bell 2010-10-27 12:50:12 -05:00
parent d11cd6f4f7
commit 199c4e4960
90 changed files with 311 additions and 311 deletions

View file

@ -112,12 +112,12 @@ sub new {
delete $raw{fieldType};
# Return the appropriate field object.
if ($fieldType eq "") {
$session->errorHandler->warn("Something is trying to create a dynamic field called ".$raw{name}.", but didn't pass in a field type.");
$session->log->warn("Something is trying to create a dynamic field called ".$raw{name}.", but didn't pass in a field type.");
$fieldType = "Text";
}
##No infinite loops, please
elsif ($fieldType eq 'DynamicField') {
$session->errorHandler->warn("Something is trying to create a DynamicField via DynamicField.");
$session->log->warn("Something is trying to create a DynamicField via DynamicField.");
$fieldType = "Text";
}
return WebGUI::Pluggable::instanciate("WebGUI::Form::".$fieldType, "new", [$session, \%raw]);