Ignore:
Timestamp:
Jun 24, 2012, 3:13:49 PM (12 years ago)
Author:
mistic100
Message:

small enhancement for BBCode Bar and Smilies Support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/include/functions_comment.inc.php

    r15940 r16000  
    11<?php
    22if (!defined('GUESTBOOK_PATH')) die('Hacking attempt!');
     3
     4include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
     5add_event_handler('user_comment_check_guestbook', 'user_comment_check',
     6  EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    37
    48function insert_user_comment_guestbook( &$comm, $key, &$infos )
     
    122126  }
    123127 
    124   include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
    125   $comment_action = user_comment_check($comment_action, $comm);
     128  // perform more spam check
     129  $comment_action = trigger_event('user_comment_check_guestbook',
     130      $comment_action, $comm
     131    );
    126132
    127133  if ( $comment_action!='reject' )
Note: See TracChangeset for help on using the changeset viewer.