Ignore:
Timestamp:
Dec 21, 2013, 6:37:54 PM (10 years ago)
Author:
mistic100
Message:

try to simplify integration of captchas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/EasyCaptcha/include/picture.inc.php

    r26025 r26069  
    22defined('EASYCAPTCHA_ID') or die('Hacking attempt!');
    33
     4$conf['EasyCaptcha']['template'] = 'comment';
    45include(EASYCAPTCHA_PATH.'include/common.inc.php');
     6
    57add_event_handler('loc_end_picture', 'add_easycaptcha');
    68add_event_handler('user_comment_check', 'check_easycaptcha', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     
    1517{
    1618  $search = '{$comment_add.CONTENT}</textarea></p>';
    17   return str_replace($search, $search."\n{\$EASYCAPTCHA_CONTENT}", $content);
     19  return str_replace($search, $search."\n{\$EASYCAPTCHA.parsed_content}", $content);
    1820}
    1921
Note: See TracChangeset for help on using the changeset viewer.