mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkg_details.php: Utilize account details virtual URL
When virtual URLs are enabled, simpler links can be used to access a user's account details page. Change this for both the maintainer and submitter links. Keeps backwards compatibility with virtual URLs being disabled. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
fb093c0dd6
commit
9052aac127
1 changed files with 8 additions and 0 deletions
|
@ -126,8 +126,12 @@ if ($SID && ($uid == $row["MaintainerUID"] ||
|
||||||
<?php
|
<?php
|
||||||
if ($row["SubmitterUID"]):
|
if ($row["SubmitterUID"]):
|
||||||
if ($SID):
|
if ($SID):
|
||||||
|
if (!$USE_VIRTUAL_URLS):
|
||||||
?>
|
?>
|
||||||
<td><a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['SubmitterUID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($submitter) ?>"><?= htmlspecialchars($submitter) ?></a></td>
|
<td><a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['SubmitterUID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($submitter) ?>"><?= htmlspecialchars($submitter) ?></a></td>
|
||||||
|
<?php else: ?>
|
||||||
|
<td><a href="<?= get_uri('/account/') . htmlspecialchars($submitter, ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($submitter)) ?>"><?= htmlspecialchars($submitter) ?></a></td>
|
||||||
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td><?= htmlspecialchars($submitter) ?></td>
|
<td><?= htmlspecialchars($submitter) ?></td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -139,8 +143,12 @@ if ($row["SubmitterUID"]):
|
||||||
<?php
|
<?php
|
||||||
if ($row["MaintainerUID"]):
|
if ($row["MaintainerUID"]):
|
||||||
if ($SID):
|
if ($SID):
|
||||||
|
if (!$USE_VIRTUAL_URLS):
|
||||||
?>
|
?>
|
||||||
<td><a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['MaintainerUID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($maintainer) ?>"><?= htmlspecialchars($maintainer) ?></a></td>
|
<td><a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['MaintainerUID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($maintainer) ?>"><?= htmlspecialchars($maintainer) ?></a></td>
|
||||||
|
<?php else: ?>
|
||||||
|
<td><a href="<?= get_uri('/account/') . htmlspecialchars($maintainer, ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($maintainer)) ?>"><?= htmlspecialchars($maintainer) ?></a></td>
|
||||||
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<td><?= htmlspecialchars($maintainer) ?></td>
|
<td><?= htmlspecialchars($maintainer) ?></td>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue