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:
Will Rossiter 2008-09-01 22:57:08 +00:00
parent e9cb69118b
commit 578e957901

View File

@ -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")){