appdb/include version.php

WineHQ wineowner at wine.codeweavers.com
Sun Jan 21 12:53:13 CST 2007


ChangeSet ID:	30905
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/01/21 12:53:13

Modified files:
	include        : version.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Re-enable voting

Patch: http://cvs.winehq.org/patch.py?id=30905

Old revision  New revision  Changes     Path
 1.101         1.102         +11 -0      appdb/include/version.php

Index: appdb/include/version.php
diff -u -p appdb/include/version.php:1.101 appdb/include/version.php:1.102
--- appdb/include/version.php:1.101	21 Jan 2007 18:53:13 -0000
+++ appdb/include/version.php	21 Jan 2007 18:53:13 -0000
@@ -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 "        <tr class=\"color1\"><td><b>URL</b></td><td>".$appLinkURL."</td></tr>\n";
 
+        // Votes
+        echo html_tr(array(
+            "<b>Votes</b>",
+            vote_count_version_total($this->iVersionId)),
+            "color0");
+
         if($this->sTestedRating != "/" && $this->sTestedRating)
             $sMaintainerColor = $this->sTestedRating;
         else



More information about the wine-cvs mailing list