Changeset 2329:f679d4ca99b7 for plugins
- Timestamp:
- 10/10/13 19:20:12 (12 years ago)
- Branch:
- default
- Location:
- plugins/antispam
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/_admin.php
r2231 r2329 54 54 $core->addBehavior('adminBeforeBlogSettingsUpdate',array('antispamBehaviors','adminBeforeBlogSettingsUpdate')); 55 55 $core->addBehavior('adminCommentsSpamForm',array('antispamBehaviors','adminCommentsSpamForm')); 56 $core->addBehavior('adminPageHelpBlock',array('antispamBehaviors','adminPageHelpBlock')); 56 57 } 57 58 58 59 class antispamBehaviors 59 60 { 61 function adminPageHelpBlock($blocks) 62 { 63 $found = false; 64 foreach($blocks as $block) { 65 if ($block == 'core_comments') { 66 $found = true; 67 break; 68 } 69 } 70 if (!$found) { 71 return null; 72 } 73 $blocks[] = 'antispam_comments'; 74 } 75 60 76 public static function adminCommentsSpamForm($core) 61 77 { -
plugins/antispam/locales/en/resources.php
r2322 r2329 31 31 $__resources['help']['words-filter'] = dirname(__FILE__).'/help/words.html'; 32 32 } 33 34 ?> 33 if (!isset($__resources['help']['antispam_comments'])) 34 { 35 $__resources['help']['antispam_comments'] = dirname(__FILE__).'/help/comments.html'; 36 } -
plugins/antispam/locales/fr/resources.php
r2322 r2329 31 31 $__resources['help']['words-filter'] = dirname(__FILE__).'/help/words.html'; 32 32 } 33 34 ?> 33 if (!isset($__resources['help']['antispam_comments'])) 34 { 35 $__resources['help']['antispam_comments'] = dirname(__FILE__).'/help/comments.html'; 36 }
Note: See TracChangeset
for help on using the changeset viewer.