appdb/include distribution.php
WineHQ
wineowner at wine.codeweavers.com
Sun Jun 10 23:06:06 CDT 2007
ChangeSet ID: 31184
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/06/10 23:06:06
Modified files:
include : distribution.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
Add a couple of comments and braces
Patch: http://cvs.winehq.org/patch.py?id=31184
Old revision New revision Changes Path
1.32 1.33 +4 -0 appdb/include/distribution.php
Index: appdb/include/distribution.php
diff -u -p appdb/include/distribution.php:1.32 appdb/include/distribution.php:1.33
--- appdb/include/distribution.php:1.32 11 Jun 2007 4: 6: 6 -0000
+++ appdb/include/distribution.php 11 Jun 2007 4: 6: 6 -0000
@@ -462,11 +462,15 @@ class distribution {
"<a href=\"$this->sUrl\">$this->sUrl</a>",
array(sizeof($this->aTestingIds), "align=\"right\""));
+ // add actions if the current user has permission to edit this object
if($this->canEdit())
{
+ // enable the 'delete' action if this distribution has no testing results
if(!sizeof($this->aTestingIds))
+ {
$shDeleteLink = " [<a href='".$oManager->makeUrl("delete",
$this->iDistributionId)."'>delete</a>]";
+ }
$aCells[] = array(
"[<a href='".$oManager->makeUrl("edit",
More information about the wine-cvs
mailing list