summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INSTALL.txt2
-rw-r--r--antispam.admin.inc9
2 files changed, 8 insertions, 3 deletions
diff --git a/INSTALL.txt b/INSTALL.txt
index 377a8ad..062c4e4 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -7,7 +7,7 @@ INSTALLATION:
2. Copy all modules files, keeping directory structure, to the
folder 'modules/antispam'
-3. Enable the akismet module in 'admin/modules'
+3. Enable the antispam module in 'admin/modules'
4. Visit 'admin/settings/antispam' and enter your API key for the
selected antispam service provider.
diff --git a/antispam.admin.inc b/antispam.admin.inc
index af90a9b..2a58344 100644
--- a/antispam.admin.inc
+++ b/antispam.admin.inc
@@ -49,8 +49,13 @@ function _antispam_settings_form() {
$deapikey_div_style = 'visibility: visible; overflow: hidden;';
break;
}
- $is_valid = (antispam_api_cmd_verify_key($apikey)
+ if (empty($apikey)) {
+ $is_valid = TRUE;
+ }
+ else {
+ $is_valid = (antispam_api_cmd_verify_key($apikey)
== ANTISPAM_API_RESULT_SUCCESS ? TRUE : FALSE);
+ }
$service_fieldset_collapsed = FALSE; // always show
$form['service'] = array(
@@ -438,7 +443,7 @@ function antispam_generate_statistics_graph() {
. '&chs=' . $chart_width . 'x' . ($chart_width / 2) // chart size
. '&chds=0,' . $total
. '&chl=' . t('Spam') . '|' . t('Ham') .'|'
- . t('False Nagative') . '|' . t('False Positive') // legend
+ . t('False Negative') . '|' . t('False Positive') // legend
. '&chd=t:' . $counts['total_spam'] . ',' . $counts['total_ham'] . ','
. $counts['total_fnegative'] . ',' . $counts['total_fpositive']
. '&chco=dd6666,ffdd33,444444,bbbbbb' // line colors