Changeset 26066


Ignore:
Timestamp:
Dec 21, 2013, 5:34:53 PM (7 years ago)
Author:
mistic100
Message:

compatibility with contactform and guestbook

Location:
extensions/CryptograPHP
Files:
3 edited

Legend:

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

    r26041 r26066  
    99{
    1010  global $template;
    11   $template->set_prefilter('index', 'prefilter_crypto');
     11  $template->set_prefilter('contactform', 'prefilter_crypto');
    1212}
    1313
  • extensions/CryptograPHP/include/guestbook.inc.php

    r26041 r26066  
    44include(CRYPTO_PATH.'include/common.inc.php');
    55add_event_handler('loc_begin_index', 'add_crypto');
    6 add_event_handler('user_comment_check_guestbook', 'check_crypto', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     6add_event_handler('user_comment_check', 'check_crypto', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    77
    88function add_crypto()
    99{
    1010  global $template;
    11   $template->set_prefilter('index', 'prefilter_crypto');
     11  $template->set_prefilter('guestbook', 'prefilter_crypto');
    1212}
    1313
  • extensions/CryptograPHP/main.inc.php

    r26041 r26066  
    5858function crypto_document_init()
    5959{
    60   global $conf, $user;
     60  global $conf, $user, $page;
    6161 
    6262  if (!is_a_guest())
Note: See TracChangeset for help on using the changeset viewer.