ChangeSet ID: 30981 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/03/17 16:00:41
Modified files: include : distribution.php
Log message: Chris Morgan cmorgan@alum.wpi.edu Distributions don't have descriptions, so don't try to retrieve this entry from the database row object. Call out to objectMakeUrl() instead of using its address. Fixes two errors exposed by the unit tests.
Patch: http://cvs.winehq.org/patch.py?id=30981
Old revision New revision Changes Path 1.16 1.17 +1 -3 appdb/include/distribution.php
Index: appdb/include/distribution.php diff -u -p appdb/include/distribution.php:1.16 appdb/include/distribution.php:1.17 --- appdb/include/distribution.php:1.16 17 Mar 2007 21: 0:41 -0000 +++ appdb/include/distribution.php 17 Mar 2007 21: 0:41 -0000 @@ -10,7 +10,6 @@ require_once(BASE."include/util.php"); class distribution { var $iDistributionId; var $sName; - var $sDescription; var $sUrl; var $sSubmitTime; var $iSubmitterId; @@ -37,7 +36,6 @@ class distribution { { $this->iDistributionId = $iDistributionId; $this->sName = $oRow->name; - $this->sDescription = $oRow->description; $this->sUrl = $oRow->url; $this->sSubmitTime = $oRow->submitTime; $this->iSubmitterId = $oRow->submitterId; @@ -288,7 +286,7 @@ class distribution { { $sSubject = "Distribution ".$this->sName." added by ". $_SESSION['current']->sRealname; - $sMsg = $this->objectMakeUrl."\n"; + $sMsg = $this->objectMakeUrl()."\n"; if($this->iSubmitterId) { $oSubmitter = new User($this->iSubmitterId);