Skip to content

Commit

Permalink
captcha handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Apr 30, 2018
1 parent 54c2ecd commit 8ad322f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/com_content/helpers/icon.php
Expand Up @@ -73,7 +73,12 @@ public static function email($article, $params, $attribs = array(), $legacy = fa
$link = $base . JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language), false);
$url = 'index.php?option=com_mailto&tmpl=component&template=' . $template . '&link=' . MailtoHelper::addLink($link);

$status = 'width=400,height=550,menubar=yes,resizable=yes';
$status = 'width=400,height=350,menubar=yes,resizable=yes';

if (JFactory::getApplication()->get('captcha', 0) != 0)
{
$status = 'width=400,height=550,menubar=yes,resizable=yes';
}

$text = JLayoutHelper::render('joomla.content.icons.email', array('params' => $params, 'legacy' => $legacy));

Expand Down

0 comments on commit 8ad322f

Please sign in to comment.