Author: Jonathan.Wage
Date: 2010-01-15 14:22:08 +0100 (Fri, 15 Jan 2010)
New Revision: 26678
Modified:
plugins/sfSympalPlugin/trunk/lib/form/sfSympalForm.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with recaptcha forms
Modified: plugins/sfSympalPlugin/trunk/lib/form/sfSympalForm.class.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/form/sfSympalForm.class.php
2010-01-15 13:21:43 UTC (rev 26677)
+++ plugins/sfSympalPlugin/trunk/lib/form/sfSympalForm.class.php
2010-01-15 13:22:08 UTC (rev 26678)
@@ -90,7 +90,9 @@
public function hasRecaptcha()
{
$forms = sfSympalConfig::get('recaptcha_forms', null, array());
- return in_array(get_class($this->getSubject()), $forms) ? true : false;
+ $class = get_class($this->getSubject());
+
+ return (in_array($class, $forms) || array_key_exists($class, $forms)) ?
true : false;
}
public static function listenToFormPostConfigure(sfEvent $event)
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.