Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finally com_mailto allow the usage of a captcha by using JForm #20265

Merged
merged 16 commits into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
no need to use set and get thanks @mbabker
  • Loading branch information
zero-24 committed Apr 30, 2018
commit 9f17807347523493fd249bc5ac3a5014cb39bb82
2 changes: 1 addition & 1 deletion components/com_mailto/views/mailto/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<input type="hidden" name="option" value="com_mailto" />
<input type="hidden" name="task" value="send" />
<input type="hidden" name="tmpl" value="component" />
<input type="hidden" name="link" value="<?php echo $this->get('link'); ?>" />
<input type="hidden" name="link" value="<?php echo $this->link; ?>" />
<?php echo JHtml::_('form.token'); ?>
</form>
</div>
3 changes: 1 addition & 2 deletions components/com_mailto/views/mailto/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ class MailtoViewMailto extends JViewLegacy
public function display($tpl = null)
{
$this->form = $this->get('Form');

$this->set('link', urldecode(JFactory::getApplication()->input->get('link', '', 'BASE64')));
$this->link = urldecode(JFactory::getApplication()->input->get('link', '', 'BASE64'));

return parent::display($tpl);
}
Expand Down