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/category.inc.php

    r11316 r11370  
    66include($cryptinstall);
    77
    8 add_event_handler('loc_begin_index', 'add_captcha');
    9 add_event_handler('user_comment_check', 'check_captcha', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     8add_event_handler('loc_begin_index', 'add_crypto');
     9add_event_handler('user_comment_check', 'check_crypto', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    1010
    11 function add_captcha()
     11function add_crypto()
    1212{
    1313  global $template, $conf;
     
    1515  if (!is_a_guest()) return;
    1616 
    17   $template->set_prefilter('comments_on_albums', 'captcha_prefilter');
     17  $template->set_prefilter('comments_on_albums', 'prefilter_crypto');
    1818  $template->assign('CAPTCHA', dsp_crypt($conf['cryptographp_theme'][0].'.cfg.php',1));
    1919}
    2020
    21 function captcha_prefilter($content, $smarty)
     21function prefilter_crypto($content, $smarty)
    2222{
    2323  load_language('plugin.lang', CRYPTO_PATH);
     
    3030}
    3131
    32 function check_captcha($action, $comment)
     32function check_crypto($action, $comment)
    3333{
    3434  global $conf, $user;
Note: See TracChangeset for help on using the changeset viewer.