ChangeSet ID: 30821 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/12/26 21:19:43
Modified files: include : testData.php
Log message: Alexander Nicolaysen Sørnes alex@thehandofagony.com Fix the testData's mailSubmitter() so it actually displays the application name.
Patch: http://cvs.winehq.org/patch.py?id=30821
Old revision New revision Changes Path 1.11 1.12 +11 -4 appdb/include/testData.php
Index: appdb/include/testData.php diff -u -p appdb/include/testData.php:1.11 appdb/include/testData.php:1.12 --- appdb/include/testData.php:1.11 27 Dec 2006 3:19:43 -0000 +++ appdb/include/testData.php 27 Dec 2006 3:19:43 -0000 @@ -252,29 +252,36 @@ class testData{ if($this->iSubmitterId) { $oSubmitter = new User($this->iSubmitterId); + + /* Get the full app/version name to display */ + $oVersion = new Version($this->iVersionId); + $sAppName = application::lookup_name($oVersion->iAppId); + $sVersionName = version::lookup_name($oVersion->iVersionId); + $sName = "$sAppName: $sVersionName"; + switch($sAction) { case "add": $sSubject = "Submitted testing data accepted"; - $sMsg = "The testing data you submitted (".$oApp->sName." ".$this->sName.") has been accepted."; + $sMsg = "The testing data you submitted for '$sName' has been accepted."; $sMsg .= APPDB_ROOT."appview.php?iVersionId=".$this->iVersionId."&iTestingId=".$this->iTestingId."\n"; $sMsg .= "Administrators Responce:\n"; break; case "reject": $sSubject = "Submitted testing data rejected"; - $sMsg = "The testing data you submitted (".$oApp->sName." ".$this->sName.") has been rejected."; + $sMsg = "The testing data you submitted for '$sName' has been rejected."; $sMsg .= APPDB_ROOT."testResults.php?sSub=view&iTestingId=".$this->iTestingId."\n"; $sMsg .= "Reason given:\n"; break; case "delete": $sSubject = "Submitted testing data deleted"; - $sMsg = "The testing data you submitted (".$oApp->sName." ".$this->sName.") has been deleted."; + $sMsg = "The testing data you submitted for '$sName' has been deleted."; $sMsg .= "Reason given:\n"; break; } $sMsg .= $aClean['sReplyText']."\n"; $sMsg .= "We appreciate your help in making the Application Database better for all users."; - + mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg); } }