summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrans2013-04-11 19:07:21 (GMT)
committer Stefaan Lippens2013-04-11 19:08:21 (GMT)
commitd6373d9e0b2282871ff7645f322ead8dc835e5da (patch)
tree3e7d94a7860b265c935f1f7469243073948c4542
parentcacdbd9e0cc9040a3835d69084a45b53384a8522 (diff)
Issue #1372750: Random CAPTCHA type does not show an image (creates a malformed URL)7.x-1.x
also see commit 3c24e45bd28179a8b476c437ca6f569ec4092294 Author: Stefaan Lippens <soxofaan@41478.no-reply.drupal.org> Date: Tue Aug 18 23:26:30 2009 +0000 #431672: fixed regression bug in revision 1.14 of random_captcha_type.module
-rw-r--r--random_captcha_type/random_captcha_type.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/random_captcha_type/random_captcha_type.module b/random_captcha_type/random_captcha_type.module
index 24b7f58..241accf 100644
--- a/random_captcha_type/random_captcha_type.module
+++ b/random_captcha_type/random_captcha_type.module
@@ -30,7 +30,7 @@ function random_captcha_type_menu() {
/**
* Implements hook_captcha().
*/
-function random_captcha_type_captcha($op, $captcha_type = '') {
+function random_captcha_type_captcha($op, $captcha_type = '', $captcha_sid=NULL) {
switch ($op) {
case 'list':
$enabled_types = _random_captcha_type_get_enabled_types();
@@ -53,7 +53,7 @@ function random_captcha_type_captcha($op, $captcha_type = '') {
}
list($module, $type) = explode('/', $module_and_type);
// Call the generate CAPTCHA hook
- $captcha = module_invoke($module, 'captcha', 'generate', $type);
+ $captcha = module_invoke($module, 'captcha', 'generate', $type, $captcha_sid);
// Store the current CAPTCHA type so it can be recovered for
// regenerating the form in the validation phase
$captcha['form']['random_captcha_type'] = array(