not an object, need to use run instead of instanciate

This commit is contained in:
JT Smith 2008-01-24 07:19:58 +00:00
parent 89201092fb
commit 7a0535571c

View file

@ -48,7 +48,7 @@ sub www_formHelper {
my $class = "WebGUI::Form::".$form->get("class");
my $sub = $form->get("sub");
return "ERROR" unless (defined $sub && defined $class);
my $output = eval { WebGUI::Pluggable::instanciate($class, "www_".$sub, [$session]) };
my $output = eval { WebGUI::Pluggable::run($class, "www_".$sub, [$session]) };
if ($@) {
$session->errorHandler->error($@);
return "ERROR";