Commit f08bfa5d authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

pkg_search_results.php: Link to account when logged in

Replace the maintainer package search links with links to the
maintainer's account when browsing the search results as a logged-in

Signed-off-by: default avatarLukas Fleischer <>
parent 6ed9da2c
......@@ -73,7 +73,11 @@ if (!$result): ?>
<td class="wrap"><?= htmlspecialchars($row['Description'], ENT_QUOTES); ?></td>
<?php if (isset($row["Maintainer"])): ?>
<?php if ($SID): ?>
<a href="<?= get_uri('/account/') . htmlspecialchars($row['Maintainer'], ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($row['Maintainer'])) ?>"><?= htmlspecialchars($row['Maintainer']) ?></a>
<?php else: ?>
<a href="<?= get_uri('/packages/'); ?>?K=<?= htmlspecialchars($row['Maintainer'], ENT_QUOTES) ?>&amp;SeB=m"><?= htmlspecialchars($row['Maintainer']) ?></a>
<?php endif; ?>
<?php else: ?>
<span><?= __("orphan") ?></span>
<?php endif; ?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment