mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
In 676595f
(Prefix package functions with pkg_/pkgbase_, 2014-04-05),
votes_for_pkgname() was renamed to pkgbase_votes_from_name() without
changing the semantics. Slightly adapt the implementation and interpret
the argument as a package base name instead of a package name. Also fix
the call site.
Reported-by: Felix Yan <felixonmars@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
29 lines
731 B
PHP
29 lines
731 B
PHP
<?php
|
|
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
|
|
include_once('aur.inc.php');
|
|
include_once('pkgbasefuncs.inc.php');
|
|
|
|
$SID = $_COOKIE['AURSID'];
|
|
$pkgbase_name = htmlspecialchars($_GET['N']);
|
|
$votes = pkgbase_votes_from_name($pkgbase_name);
|
|
|
|
html_header(__("Voters"));
|
|
|
|
if (has_credential(CRED_PKGBASE_LIST_VOTERS)):
|
|
?>
|
|
|
|
<div class="box">
|
|
<h2>Votes for <a href="<?= get_pkgbase_uri($pkgbase_name); ?>"><?= $pkgbase_name ?></a></h2>
|
|
<div class="boxbody">
|
|
<ul>
|
|
<?php while (list($indx, $row) = each($votes)): ?>
|
|
<li><a href="<?= get_user_uri($row['Username']); ?>"><?= htmlspecialchars($row['Username']) ?></a></li>
|
|
<?php endwhile; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
endif;
|
|
|
|
html_footer(AUR_VERSION);
|