Skip to content

Commit

Permalink
Refactor HomeSite ShortName display using variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcorbett committed Nov 29, 2023
1 parent 69d7a1c commit 8a7d0ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/web_portal/views/user/view_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@
<td class="site_table">
<?php
$homeId = $params['user']->getHomeSite()->getId();
$homeShortName = $params['user']->getHomeSite()->getShortName();
echo "<a href=\"index.php?Page_Type=Site&amp;id=$homeId\">";
// Use xecho as the Site's ShortName is user submitted input.
xecho $params['user']->getHomeSite()->getShortName();
xecho $homeShortName;
echo "</a>";
?>
</td>
Expand Down

0 comments on commit 8a7d0ec

Please sign in to comment.