Revision 3874:ab8368569446,
456 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
short notation for array (array() → [])
|
Rev | Line | |
---|
[0] | 1 | <?php |
---|
[3731] | 2 | /** |
---|
| 3 | * @brief antispam, a plugin for Dotclear 2 |
---|
| 4 | * |
---|
| 5 | * @package Dotclear |
---|
| 6 | * @subpackage Plugins |
---|
| 7 | * |
---|
| 8 | * @copyright Olivier Meunier & Association Dotclear |
---|
| 9 | * @copyright GPL-2.0-only |
---|
| 10 | */ |
---|
| 11 | |
---|
[3730] | 12 | if (!defined('DC_RC_PATH')) {return;} |
---|
[0] | 13 | |
---|
[3874] | 14 | $core->addBehavior('publicBeforeCommentCreate', ['dcAntispam', 'isSpam']); |
---|
| 15 | $core->addBehavior('publicBeforeTrackbackCreate', ['dcAntispam', 'isSpam']); |
---|
| 16 | $core->addBehavior('publicBeforeDocument', ['dcAntispam', 'purgeOldSpam']); |
---|
Note: See
TracBrowser
for help on using the repository browser.