From b2e2f5afb4945279cfb10311d05a10491c36a842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sun, 21 Jan 2007 18:53:13 +0000 Subject: [PATCH] Re-enable voting --- include/version.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/version.php b/include/version.php index 7409c14..4cedb6c 100644 --- a/include/version.php +++ b/include/version.php @@ -698,6 +698,11 @@ class Version { if(!$this->iVersionId) util_show_error_page_and_exit('Internal Database Access Error. No Version Found.'); + // show Vote Menu + if($_SESSION['current']->isLoggedIn()) + apidb_sidebar_add("vote_menu"); + + // header apidb_header("Viewing App- ".$oApp->sName." Version - ".$this->sName); @@ -722,6 +727,12 @@ class Version { // main URL echo " URL".$appLinkURL."\n"; + // Votes + echo html_tr(array( + "Votes", + vote_count_version_total($this->iVersionId)), + "color0"); + if($this->sTestedRating != "/" && $this->sTestedRating) $sMaintainerColor = $this->sTestedRating; else