Show
Ignore:
Timestamp:
06/01/10 21:56:07 (3 years ago)
Author:
rvelices
Message:

merge r6437 from trunk to branch 2.1
- do not remove slashes before calling insert_user_comment (homogeneity with update_user_comment and general use of slashes in piwigo)
- when using a modifier on a non array variable use @| instead of | (generated code is simpler and faster)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/functions_comment.inc.php

    r6424 r6438  
    258258  } 
    259259 
    260 /* ? this is a MySql Error - author_id is not defined 
    261   if ($comment_action!='reject' and $conf['anti-flood_time']>0 ) 
    262   { // anti-flood system 
    263     $reference_date = time() - $conf['anti-flood_time']; 
    264     $query = ' 
    265 SELECT id FROM '.COMMENTS_TABLE.' 
    266   WHERE date > FROM_UNIXTIME('.$reference_date.') 
    267     AND author_id = '.$comm['author_id']; 
    268     if ( pwg_db_num_rows( pwg_query( $query ) ) > 0 ) 
    269     { 
    270       //?? array_push( $infos, l10n('Anti-flood system : please wait for a moment before trying to post another comment') ); 
    271       $comment_action='reject'; 
    272     } 
    273   } 
    274 */ 
    275260  // perform more spam check 
    276261  $comment_action =