Dotclear

Changeset 2329:f679d4ca99b7 for plugins


Ignore:
Timestamp:
10/10/13 19:20:12 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Missing a contextual help on comments list for antispam, addresses #1760

Location:
plugins/antispam
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/_admin.php

    r2231 r2329  
    5454     $core->addBehavior('adminBeforeBlogSettingsUpdate',array('antispamBehaviors','adminBeforeBlogSettingsUpdate')); 
    5555     $core->addBehavior('adminCommentsSpamForm',array('antispamBehaviors','adminCommentsSpamForm')); 
     56     $core->addBehavior('adminPageHelpBlock',array('antispamBehaviors','adminPageHelpBlock')); 
    5657} 
    5758 
    5859class antispamBehaviors 
    5960{ 
     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 
    6076     public static function adminCommentsSpamForm($core) 
    6177     { 
  • plugins/antispam/locales/en/resources.php

    r2322 r2329  
    3131     $__resources['help']['words-filter'] = dirname(__FILE__).'/help/words.html'; 
    3232} 
    33  
    34 ?> 
     33if (!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  
    3131     $__resources['help']['words-filter'] = dirname(__FILE__).'/help/words.html'; 
    3232} 
    33  
    34 ?> 
     33if (!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.

Sites map