Skip to content
Snippets Groups Projects
Commit b299dde9 authored by Demian Katz's avatar Demian Katz
Browse files

Merge branch 'release-4.1'

parents 7c4986c0 83b0036e
Branches
Tags
No related merge requests found
...@@ -288,7 +288,7 @@ class Factory ...@@ -288,7 +288,7 @@ class Factory
$config = $sm->get('VuFind\Config\PluginManager')->get('config'); $config = $sm->get('VuFind\Config\PluginManager')->get('config');
$useRecaptcha = isset($config->Captcha) && isset($config->Captcha->forms) $useRecaptcha = isset($config->Captcha) && isset($config->Captcha->forms)
&& (trim($config->Captcha->forms) === '*' && (trim($config->Captcha->forms) === '*'
|| strpos($config->Captcha->forms, 'userComments')); || strpos($config->Captcha->forms, 'userComments') !== false);
return new UserComments( return new UserComments(
'enabled' === $capabilities->getCommentSetting(), 'enabled' === $capabilities->getCommentSetting(),
$useRecaptcha $useRecaptcha
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment