From: Evan Prodromou Date: Wed, 7 Mar 2012 21:46:21 +0000 (-0600) Subject: autoload for SpamAction and SpamNoticeStream X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=495880c817bb27b0e8bd2e1ba6686bfe82c04a6e;p=quix0rs-gnu-social.git autoload for SpamAction and SpamNoticeStream --- diff --git a/ActivitySpamPlugin.php b/ActivitySpamPlugin.php index b429a3ef9d..faf2ad0ca5 100644 --- a/ActivitySpamPlugin.php +++ b/ActivitySpamPlugin.php @@ -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';