Dotclear


Ignore:
Timestamp:
12/03/12 14:14:58 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with junk comments without antispam plugin enabled (addresses #903)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/_admin.php

    r324 r1052  
    4949     $core->addBehavior('adminBlogPreferencesForm',array('antispamBehaviors','adminBlogPreferencesForm')); 
    5050     $core->addBehavior('adminBeforeBlogSettingsUpdate',array('antispamBehaviors','adminBeforeBlogSettingsUpdate')); 
     51     $core->addBehavior('adminCommentsSpamForm',array('antispamBehaviors','adminCommentsSpamForm')); 
    5152} 
    5253 
    5354class antispamBehaviors 
    5455{ 
     56     public static function adminCommentsSpamForm($core) 
     57     { 
     58          $ttl = $core->blog->settings->antispam->antispam_moderation_ttl; 
     59          if ($ttl != null && $ttl >=0) { 
     60               echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $ttl).' '. 
     61               sprintf(__('You can modify this duration in the %s'),'<a href="blog_pref.php"> '.__('Blog preferences').'</a>'). 
     62               '</p>'; 
     63          } 
     64     } 
     65 
    5566     public static function adminBlogPreferencesForm($core,$settings) 
    5667     { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map