Skip to content

Commit 65b0c3b

Browse files
committed
implement suggested improvments
1 parent a43a17d commit 65b0c3b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

components/com_content/helpers/icon.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,8 @@ public static function email($article, $params, $attribs = array(), $legacy = fa
7373
$link = $base . JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language), false);
7474
$url = 'index.php?option=com_mailto&tmpl=component&template=' . $template . '&link=' . MailtoHelper::addLink($link);
7575

76-
$status = 'width=400,height=550,menubar=yes,resizable=yes';
77-
78-
if (JFactory::getApplication()->get('captcha', '0') === '0')
79-
{
80-
$status = 'width=400,height=450,menubar=yes,resizable=yes';
81-
}
76+
$height = JFactory::getApplication()->get('captcha', '0') === '0' ? 450 : 550;
77+
$status = 'width=400,height=' . $height . ',menubar=yes,resizable=yes';
8278

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

components/com_mailto/models/mailto.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ protected function loadFormData()
5353
{
5454
$user = JFactory::getUser();
5555
$app = JFactory::getApplication();
56-
$data = array();
57-
5856
$data = $app->getUserState('mailto.mailto.form.data', array());
5957

6058
$data['link'] = urldecode($app->input->get('link', '', 'BASE64'));
@@ -100,7 +98,6 @@ public function getData()
10098
$data['sender'] = $input->get('sender', '', 'string');
10199
$data['emailfrom'] = $input->get('emailfrom', '', 'string');
102100
$data['subject'] = $input->get('subject', '', 'string');
103-
$data['captcha'] = $input->get('captcha', '', 'string');
104101

105102
return $data;
106103
}

0 commit comments

Comments
 (0)