Skip to content

Commit

Permalink
Merge pull request #493 from gregcorbett/url_line_cont_fix
Browse files Browse the repository at this point in the history
Rework Home Site display
  • Loading branch information
gregcorbett authored Nov 30, 2023
2 parents 6e00018 + ddb7207 commit bcf93da
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions htdocs/web_portal/views/user/view_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,23 @@
</div>
</td>
</tr>-->
<?php if ($params['user']->getHomeSite() != null) { ?>
<?php
$homeSite = $params['user']->getHomeSite();
if ($homeSite != null) {
?>
<tr class="site_table_row_2">
<td class="site_table">Home Site</td>
<td class="site_table">
<a href="index.php?Page_Type=Site&amp;id=
<?php echo $params['user']->getHomeSite()->getId()?>">
<?php xecho($params['user']->getHomeSite()->getShortName()) ?>
</a>
<?php
$homeId = $homeSite->getId();
$homeShortName = $homeSite->getShortName();
echo "<a href=\"index.php?Page_Type=Site&amp;id=";
echo "$homeId\">";
// Use xecho as the Site's ShortName is user
// submitted input.
xecho($homeShortName);
echo "</a>";
?>
</td>
</tr>
<?php } ?>
Expand Down

0 comments on commit bcf93da

Please sign in to comment.