BUGFIX: fixed spelling of spam protector module

This commit is contained in:
Will Rossiter 2009-06-04 23:44:08 +00:00
parent 928bb4bc6e
commit 8f9c0ba944
2 changed files with 7 additions and 7 deletions

View File

@ -21,7 +21,7 @@ SETTING UP THE MODULE (in 'mysite/_config.php')
------------------------------------------------------
Before putting the following code in '_config.php', make sure you have a subclass of 'SpamProtectorField' installed or written. One
example of 'SpamProtecter' subclass is 'MollomField'.
example of 'SpamProtector' subclass is 'MollomField'.
<<<< CODE STARTS >>>>
@ -50,4 +50,4 @@ What does this do?
This code add an instance of a 'SpamProtectorField' class specified in SETTING UP THE MODULE section. The newly created field will have
MollomField field. The first parameter is a Form object in which the field will be added into and the second parameter tells
SpamProtecterManagor to place the new field before a field named 'Message'.
SpamProtectorManagor to place the new field before a field named 'Message'.

View File

@ -29,10 +29,10 @@ class SpamProtectorManager {
* @param array an associative array
* with the name of the spam web service's field, for example post_title, post_body, author_name
* 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.
* The naming of the fields is based on the implementation of the subclass of SpamProtectorField.
* *** Most of the web service doesn't require this.
* @return SpamProtector object on success or null if the spamprotecter class is not found
* also null if spamprotecterfield creation fails.
* @return SpamProtector object on success or null if the spamprotector class is not found
* also null if spamprotectorfield creation fails.
*/
static function update_form($form, $before=null, $fieldsToSpamServiceMapping=null) {
$check = null;
@ -41,9 +41,9 @@ class SpamProtectorManager {
$protector = new $protectorClass();
try {
$check = $protecter->updateForm($form, $before, $fieldsToSpamServiceMapping);
$check = $protector->updateForm($form, $before, $fieldsToSpamServiceMapping);
} catch (Exception $e) {
user_error("SpamProtecterManager::update_form(): '$protectorClass' is not correctly set up.", E_USER_WARNING);
user_error("SpamProtectorManager::update_form(): '$protectorClass' is not correctly set up.", E_USER_WARNING);
}
if(!$check) return null;