Ignore:
Timestamp:
Jun 14, 2011, 3:15:38 PM (13 years ago)
Author:
mistic100
Message:

change functions names (avoid errors if Captcha is also loaded)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/include/register.inc.php

    r11316 r11370  
    66include($cryptinstall);
    77
    8 add_event_handler('loc_end_page_header', 'add_captcha');
    9 add_event_handler('register_user_check', 'check_captcha');
     8add_event_handler('loc_end_page_header', 'add_crypto');
     9add_event_handler('register_user_check', 'check_crypto');
    1010
    11 function add_captcha()
     11function add_crypto()
    1212{
    1313  global $template, $conf;
    1414
    15   $template->set_prefilter('register', 'captcha_prefilter');
     15  $template->set_prefilter('register', 'prefilter_crypto');
    1616  $template->assign('CAPTCHA', dsp_crypt($conf['cryptographp_theme'][0].'.cfg.php',1));
    1717}
    1818
    19 function captcha_prefilter($content, $smarty)
     19function prefilter_crypto($content, $smarty)
    2020{
    2121  load_language('plugin.lang', CRYPTO_PATH);
     
    3939}
    4040
    41 function check_captcha($errors)
     41function check_crypto($errors)
    4242{
    4343  if (!chk_crypt($_POST['code']))
Note: See TracChangeset for help on using the changeset viewer.