diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-14 01:24:59 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-15 22:44:51 +0200 |
commit | 2425f963f8ad45292c217914b5fee1ed18104c26 (patch) | |
tree | 9dd5bcd1d4c95d9bbe8a5d96cd9f6610bd665787 /web/template/pkg_comments.php | |
parent | a03c684ecd51327f9c6921a6e0001d82e3223799 (diff) | |
download | aurweb-2425f963f8ad45292c217914b5fee1ed18104c26.tar.xz |
Use virtual path feature for links
Use virtual paths in links (e.g. link to "/packages/" instead of
"/packages.php" etc.) if the virtual path feature is enabled.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_comments.php')
-rw-r--r-- | web/template/pkg_comments.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index b2d9ca5..5b5f610 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -10,11 +10,11 @@ $count = package_comments_count($_GET['ID']); <?php while (list($indx, $row) = each($comments)): ?> <?php if ($SID): - $row['UserName'] = "<a href=\"account.php?Action=AccountInfo&ID={$row['UsersID']}\">{$row['UserName']}</a>"; + $row['UserName'] = "<a href=\"<?php echo get_uri('/account/'); ?>?Action=AccountInfo&ID={$row['UsersID']}\">{$row['UserName']}</a>"; endif; ?> <h4> <?php if (canDeleteCommentArray($row, $atype, $uid)): ?> - <form method="post" action="packages.php?ID=<?php echo $row['ID'] ?>"> + <form method="post" action="<?php echo get_uri('/packages/'); ?>?ID=<?php echo $row['ID'] ?>"> <fieldset style="display:inline;"> <input type="hidden" name="action" value="do_DeleteComment" /> <input type="hidden" name="comment_id" value="<?php echo $row['ID'] ?>" /> |