Show
Ignore:
Timestamp:
10/05/06 19:00:41 (2 years ago)
Author:
ogawa
Message:

Be compatible with CPAN version of Authen-Captcha which doesn't support "secret" option.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • captcha/trunk/plugins/captcha/captcha_js.cgi

    r257 r259  
    4646 
    4747    $captcha->expire($cfg->{captcha_ttl} || 3600); 
    48     $captcha->secret($cfg->{captcha_secret} || ''); 
     48    $captcha->secret($cfg->{captcha_secret} || '') 
     49        if $captcha->can('secret'); 
    4950    $captcha->output_folder($cfg->{captcha_images_path}); 
    5051    my $captcha_length = $cfg->{captcha_length} || 5;