From 9c24f996d5a1c68e0ef7c2d9cc057912caf0f324 Mon Sep 17 00:00:00 2001 From: Nino Avsajanishvili <31957788+ninikoki@users.noreply.github.com> Date: Mon, 25 Sep 2017 14:37:43 +0200 Subject: [PATCH] FIX: sr_freecap marker condition wrong --- Classes/View/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/View/Form.php b/Classes/View/Form.php index 9763b039..0f09eff0 100644 --- a/Classes/View/Form.php +++ b/Classes/View/Form.php @@ -634,7 +634,7 @@ protected function fillCaptchaMarkers(&$markers) $markers['###CAPTCHA###'] = \ThinkopenAt\Captcha\Utility::makeCaptcha(); $markers['###captcha###'] = $markers['###CAPTCHA###']; } - if (stristr($this->template, '###SR_FREECAP_###') && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('sr_freecap')) { + if (stristr($this->template, '###SR_FREECAP_IMAGE###') && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('sr_freecap')) { require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sr_freecap') . 'pi2/class.tx_srfreecap_pi2.php'); $this->freeCap = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_srfreecap_pi2'); $markers = array_merge($markers, $this->freeCap->makeCaptcha());