autoload for SpamAction and SpamNoticeStream
This commit is contained in:
parent
f139199cf1
commit
495880c817
@ -105,12 +105,14 @@ class ActivitySpamPlugin extends Plugin
|
|||||||
switch ($cls)
|
switch ($cls)
|
||||||
{
|
{
|
||||||
case 'TrainAction':
|
case 'TrainAction':
|
||||||
|
case 'SpamAction':
|
||||||
include_once $dir . '/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
|
include_once $dir . '/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
|
||||||
return false;
|
return false;
|
||||||
case 'Spam_score':
|
case 'Spam_score':
|
||||||
include_once $dir . '/'.$cls.'.php';
|
include_once $dir . '/'.$cls.'.php';
|
||||||
return false;
|
return false;
|
||||||
case 'SpamFilter':
|
case 'SpamFilter':
|
||||||
|
case 'SpamNoticeStream':
|
||||||
case 'TrainSpamForm':
|
case 'TrainSpamForm':
|
||||||
case 'TrainHamForm':
|
case 'TrainHamForm':
|
||||||
include_once $dir . '/'.strtolower($cls).'.php';
|
include_once $dir . '/'.strtolower($cls).'.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user