Skip to content

Commit

Permalink
[4.0] Correcting frontend login/registration menu items password label (
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Aug 6, 2019
2 parents 903918f + a1dafb9 commit f523982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/com_users/layouts/joomla/form/renderfield.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
*/
preg_match('/class=\"([^\"]+)\"/i', $input, $match);

$required = (strpos($input, 'aria-required="true"') !== false || (!empty($match[1]) && strpos($match[1], 'required') !== false));
$required = (strpos($input, 'aria-required="true"') !== false
|| (!empty($match[1]) && (strpos($match[1], 'required') !== false) || strpos($displayData['class'], 'required') !== false));
$typeOfSpacer = (strpos($label, 'spacer-lbl') !== false);

?>
Expand Down

0 comments on commit f523982

Please sign in to comment.