J 3.3.1 edit profile with "remember me" - heading problem

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
mino182
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Jun 26, 2014 1:49 pm

J 3.3.1 edit profile with "remember me" - heading problem

Post by mino182 » Fri Jul 18, 2014 1:08 pm

Hi, when user which is logged in with "remember me" want to edit his profile, he is forced to login. (line 66 in components\com_users\views\profile\view.html.php).

But heading in login form is "Logout" because user is technically logged in and in file components\com_users\views\login\view.html.php in line 90 is this condition

Code: Select all

$this->params->def('page_heading', $login ? JText::_('JLOGIN') : JText::_('JLOGOUT'))
which determine heading depend on user is guest or not.

Solution:

In file components\com_users\views\login\tmpl\default_login.php

change line 18

Code: Select all

<?php echo $this->escape($this->params->get('page_heading')); ?>
to

Code: Select all

<?php echo JText::_('JLOGIN'); ?>
Because in login form should be allways "Login" heading. And logout form have own tmpl file.

Locked

Return to “Joomla! 3.x Bug Reporting”