summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-ximageinfo_cache.admin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/imageinfo_cache.admin.inc b/imageinfo_cache.admin.inc
index 639cacb..3407352 100755
--- a/imageinfo_cache.admin.inc
+++ b/imageinfo_cache.admin.inc
@@ -64,11 +64,11 @@ function imageinfo_cache_admin_form($form_state) {
'#type' => 'textfield',
'#title' => t('Shared authentication key'),
'#default_value' => variable_get('imageinfo_cache_url_key', md5(drupal_get_private_key())),
- '#description' => t('Use a 32 character md5 hash. This must match on all async servers.'),
+ '#description' => t('Use a 32 character md5 hash. This must match on all servers.'),
);
$form['imageinfo_cache_server_addr'] = array(
'#type' => 'textfield',
- '#title' => t('Server/IP Address to send all asynchronous requests to'),
+ '#title' => t('Server/IP Address to send all image generation requests to'),
'#default_value' => variable_get('imageinfo_cache_server_addr', FALSE),
'#description' => t('If left blank it will use the settings found in the <a href="!link">HTTPRL module</a>.', array('!link' => url('admin/settings/httprl'))),
);
@@ -109,7 +109,7 @@ function imageinfo_cache_admin_form_validate($form, &$form_state) {
}
if ( empty($values['imageinfo_cache_url_key'])
- || !preg_match('/^[a-f0-9]{32}$/', $md5)
+ || !preg_match('/^[a-f0-9]{32}$/', $values['imageinfo_cache_url_key'])
) {
form_set_error('imageinfo_cache_url_key', t('Value must be a valid md5 hash. Recommended md5 hash on this server: %value', array('%value' => md5(drupal_get_private_key()))));
}