static function setEnabled($math = true) { self::$mathProtection = $math; }
function newspamquestion() { if (Director::is_ajax()) { echo Convert::raw2xml(sprintf(_t('PageCommentInterface_Controller.SPAMQUESTION', "Spam protection question: %s"), MathSpamProtection::getMathQuestion())); } }