mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
More accurate class_exists() check
The class "Comment" was actually defined by phing/filters/StripLineComments.php. Since I have installed phing globally through composer, its automatically in the include_path. That's a separate problem, but this is a viable workaround.
This commit is contained in:
parent
1c841b25e1
commit
a9545bc842
@ -9,7 +9,7 @@
|
|||||||
* @package spamprotection
|
* @package spamprotection
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(class_exists('Comment')) {
|
if(class_exists('CommentingController')) {
|
||||||
/**
|
/**
|
||||||
* If the comments module is installed then add the spam protection module
|
* If the comments module is installed then add the spam protection module
|
||||||
* to the comments form via this extension
|
* to the comments form via this extension
|
||||||
|
Loading…
Reference in New Issue
Block a user