diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-14 01:57:19 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-15 22:48:32 +0200 |
commit | 03486c3b6feafb18f00b0e0c092a1bd4ac2f3903 (patch) | |
tree | f91bbdf64c725e35c7f08ac930e7fcd2a1f066c6 /web/template/pkg_search_results.php | |
parent | 2425f963f8ad45292c217914b5fee1ed18104c26 (diff) | |
download | aur-03486c3b6feafb18f00b0e0c092a1bd4ac2f3903.tar.gz aur-03486c3b6feafb18f00b0e0c092a1bd4ac2f3903.tar.xz |
Use virtual paths for package details
Extend the routing front/back ends to allow for using
"/package/$pkgname/" for individual packages.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_search_results.php')
-rw-r--r-- | web/template/pkg_search_results.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index 440698ba..11db7a14 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -52,7 +52,7 @@ if (!$result): ?> <td><input type="checkbox" name="IDs[<?php echo $row["ID"] ?>]" value="1" /></td> <?php endif; ?> <td><?php echo htmlspecialchars($row["Category"]) ?></td> - <td><a href="<?php echo get_uri('/packages/'); ?>?ID=<?php echo $row["ID"] ?>"><?php echo htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]) ?></a></td> + <td><a href="<?php echo htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?php echo htmlspecialchars($row["Name"]) . ' ' . htmlspecialchars($row["Version"]) ?></a></td> <td><?php echo $row["NumVotes"] ?></td> <?php if ($SID): ?> <td> |