diff --git a/code/SpamProtecterManager.php b/code/SpamProtecterManager.php index b886e26..8ae8b23 100644 --- a/code/SpamProtecterManager.php +++ b/code/SpamProtecterManager.php @@ -27,10 +27,11 @@ class SpamProtecterManager { * and a string of field names (seperated by comma) as a value. * The naming of the fields is based on the implementation of the subclass of SpamProtecterField. * *** Most of the web service doesn't require this. - * @return SpamProtecterField + * @return SpamProtector object */ static function update_form($form, $before=null, $callbackObject=null, $fieldsToSpamServiceMapping=null) { $protecter = new self::$spam_protecter(); + $protecter->updateForm($form, $before, $callbackObject, $fieldsToSpamServiceMapping); return $protecter; }