Changeset 1052:de274bbd7b80 for plugins/antispam/_admin.php
- Timestamp:
- 12/03/12 14:14:58 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/_admin.php
r324 r1052 49 49 $core->addBehavior('adminBlogPreferencesForm',array('antispamBehaviors','adminBlogPreferencesForm')); 50 50 $core->addBehavior('adminBeforeBlogSettingsUpdate',array('antispamBehaviors','adminBeforeBlogSettingsUpdate')); 51 $core->addBehavior('adminCommentsSpamForm',array('antispamBehaviors','adminCommentsSpamForm')); 51 52 } 52 53 53 54 class antispamBehaviors 54 55 { 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 55 66 public static function adminBlogPreferencesForm($core,$settings) 56 67 {
Note: See TracChangeset
for help on using the changeset viewer.