~bramt/habari-captcha/habari-0.7

« back to all changes in this revision

Viewing changes to captcha.plugin.php

  • Committer: Bram
  • Date: 2011-03-05 13:14:25 UTC
  • Revision ID: bram@b87.nl-20110305131425-h54jppo2cklsq7aj
Updated README

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        function action_init()
24
24
        {
25
25
                $this->add_template( 'captcha', dirname(__FILE__) . '/formcontrol_captcha.php' );
26
 
    $js = 'var RecaptchaOptions = { theme : \''. Options::get( 'captcha__theme' ) .'\' }';
 
26
    $js = 'var RecaptchaOptions = { theme : \''. Options::get( 'captcha__theme', 'red' ) .'\' }';
27
27
    Stack::add('template_header_javascript', $js, 'yourscript');
28
28
  }
29
29