Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from cron-eu/master
Browse files Browse the repository at this point in the history
sr_freecap marker condition is wrong
  • Loading branch information
7elix authored Oct 7, 2018
2 parents 1b6d451 + 9c24f99 commit 68db184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/View/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 68db184

Please sign in to comment.