Skip to content

Commit

Permalink
Set the called URL as the action attribute value
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubik-Rubik committed Dec 9, 2014
1 parent 135a3df commit 1b7c32c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/mod_login/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
JHtml::_('bootstrap.tooltip');

?>
<form action="<?php echo JRoute::_(JUri::current(), true, $params->get('usesecure')); ?>" method="post" id="login-form" class="form-inline">
<form action="<?php echo JRoute::_(JUri::getInstance()->toString(), true, $params->get('usesecure')); ?>" method="post" id="login-form" class="form-inline">
<?php if ($params->get('pretext')) : ?>
<div class="pretext">
<p><?php echo $params->get('pretext'); ?></p>
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_login/tmpl/default_logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

JHtml::_('behavior.keepalive');
?>
<form action="<?php echo JRoute::_(JUri::current(), true, $params->get('usesecure')); ?>" method="post" id="login-form" class="form-vertical">
<form action="<?php echo JRoute::_(JUri::getInstance()->toString(), true, $params->get('usesecure')); ?>" method="post" id="login-form" class="form-vertical">
<?php if ($params->get('greeting')) : ?>
<div class="login-greeting">
<?php if ($params->get('name') == 0) : {
Expand Down

0 comments on commit 1b7c32c

Please sign in to comment.