mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR: fixed comment on MathSpamProtection
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@61840 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e9cb69118b
commit
578e957901
@ -1,16 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Tools for adding an optional protection question to a form.
|
||||
* Remember to add MathSpamProtection::enabled(true); to _config.php for this question to be added to the comments form.
|
||||
* Tools for adding an optional Maths protection question to a form.
|
||||
*
|
||||
* @package cms
|
||||
* @subpackage comments
|
||||
*/
|
||||
|
||||
class MathSpamProtection {
|
||||
|
||||
private static $mathProtection = false;
|
||||
|
||||
/**
|
||||
* Creates the question from random variables, which are also saved to the session.
|
||||
* @return String
|
||||
*/
|
||||
static function getMathQuestion(){
|
||||
if(!Session::get("mathQuestionV1")&&!Session::get("mathQuestionV2")){
|
||||
|
Loading…
Reference in New Issue
Block a user