| Revision 3874:ab8368569446,
456 bytes
checked in by franck <carnet.franck.paul@…>, 7 years ago
(diff) |
|
short notation for array (array() → [])
|
| Line | |
|---|
| 1 | <?php |
|---|
| 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 | |
|---|
| 12 | if (!defined('DC_RC_PATH')) {return;} |
|---|
| 13 | |
|---|
| 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.