autoload for SpamAction and SpamNoticeStream

This commit is contained in:
Evan Prodromou 2012-03-07 15:46:21 -06:00
parent f139199cf1
commit 495880c817

View File

@ -105,12 +105,14 @@ class ActivitySpamPlugin extends Plugin
switch ($cls)
{
case 'TrainAction':
case 'SpamAction':
include_once $dir . '/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
return false;
case 'Spam_score':
include_once $dir . '/'.$cls.'.php';
return false;
case 'SpamFilter':
case 'SpamNoticeStream':
case 'TrainSpamForm':
case 'TrainHamForm':
include_once $dir . '/'.strtolower($cls).'.php';