Skip to content

Commit

Permalink
Use renderField() method to render fields (#30738)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ authored Sep 23, 2020
1 parent 74c6d06 commit 7047a4e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions components/com_users/tmpl/profile/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,7 @@
<?php endif; ?>
<?php // Iterate through the fields in the set and display them. ?>
<?php foreach ($fields as $field) : ?>
<?php // If the field is hidden, just display the input. ?>
<?php if ($field->hidden) : ?>
<?php echo $field->input; ?>
<?php else : ?>
<div class="control-group">
<div class="control-label">
<?php echo $field->label; ?>
</div>
<div class="controls">
<?php echo $field->input; ?>
</div>
</div>
<?php endif; ?>
<?php echo $field->renderField(); ?>
<?php endforeach; ?>
</fieldset>
<?php endif; ?>
Expand Down

0 comments on commit 7047a4e

Please sign in to comment.