Add vote inspector tool

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-22 20:11:07 +02:00
parent 95d93a09c2
commit 7b82cd1ef4
2 changed files with 97 additions and 0 deletions

View File

@@ -870,6 +870,14 @@ class version {
else
$shVoteLink = '';
// Allow admins to see which users have voted, in order to identify
// bogus votes
if($_SESSION['current']->hasPriv('admin'))
{
$oMVoteInspector = new objectManager('voteInspector', 'Vote inspector');
$shVoteLink .= ' &nbsp; <a href="'.$oMVoteInspector->makeUrl('view',$this->iVersionId).'">Inspect</a>';
}
$shVoteText = vote_count_version_total($this->iVersionId).$shVoteLink;
} else
{