summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_details.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r--web/template/pkg_details.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 774d670..67cb5d1 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -143,10 +143,12 @@ if ($row["MaintainerUID"]):
</tr>
<tr>
<th><?php echo __('Votes') . ': ' ?></th>
-<?php
-if ($atype == "Developer" || $atype == "Trusted User"):
-?>
- <td><a href="<?php echo get_uri('/voters/'); ?>?ID=<?php echo$pkgid ?>"><?php echo $votes ?></a>
+<?php if ($atype == "Developer" || $atype == "Trusted User"): ?>
+<?php if ($USE_VIRTUAL_URLS): ?>
+ <td><a href="<?php echo get_pkg_uri($row['Name']); ?>voters/"><?php echo $votes ?></a>
+<?php else: ?>
+ <td><a href="<?php echo get_uri('/voters/'); ?>?ID=<?php echo $pkgid ?>"><?php echo $votes ?></a>
+<?php endif; ?>
<?php else: ?>
<td><?php echo $votes ?></td>
<?php endif; ?>