r4111 - trunk/plugins/ullCorePlugin/lib/form/widget

0 views
Skip to first unread message

s...@ull.at

unread,
Jun 20, 2014, 3:57:56 AM6/20/14
to ullrigh...@googlegroups.com
Author: klemens
Date: 2014-06-20 09:57:55 +0200 (Fri, 20 Jun 2014)
New Revision: 4111

Modified:
trunk/plugins/ullCorePlugin/lib/form/widget/ullMetaWidgetCaptcha.class.php
Log:
ullMetaWidgetCaptcha did not use widget options. set use_ssl to true by default

Modified: trunk/plugins/ullCorePlugin/lib/form/widget/ullMetaWidgetCaptcha.class.php
===================================================================
--- trunk/plugins/ullCorePlugin/lib/form/widget/ullMetaWidgetCaptcha.class.php 2014-06-17 08:44:55 UTC (rev 4110)
+++ trunk/plugins/ullCorePlugin/lib/form/widget/ullMetaWidgetCaptcha.class.php 2014-06-20 07:57:55 UTC (rev 4111)
@@ -9,10 +9,16 @@

protected function configureWriteMode()
{
- $this->addWidget(new sfWidgetFormReCaptcha(array(
+ $defaults = array(
'public_key' => sfConfig::get('app_recaptcha_public_key'),
'culture' => substr(sfContext::getInstance()->getUser()->getCulture(), 0, 2),
'theme' => 'white',
+ 'use_ssl' => true,
+ );
+
+ $this->addWidget(new sfWidgetFormReCaptcha(array_merge(
+ $defaults,
+ $this->columnConfig->getWidgetOptions()
)));

$this->addValidator(new sfValidatorReCaptcha(array(

Reply all
Reply to author
Forward
0 new messages