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

try to simplify integration of captchas

File:
1 edited

Legend:

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

    r26041 r26072  
    22defined('CRYPTO_ID') or die('Hacking attempt!');
    33
     4$conf['cryptographp']['template'] = 'comment';
    45include(CRYPTO_PATH.'include/common.inc.php');
     6
    57add_event_handler('loc_begin_index', 'add_crypto');
    68add_event_handler('user_comment_check_albums', 'check_crypto', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     
    1517{
    1618  $search = '{$comment_add.CONTENT}</textarea></p>';
    17   return str_replace($search, $search."\n{\$CRYPTOGRAPHP}", $content);
     19  return str_replace($search, $search."\n{\$CRYPTO.parsed_content}", $content);
    1820}
    1921
Note: See TracChangeset for help on using the changeset viewer.