Version class fixes. Let update() be silent if desired, get rid of redundant message in unqueue().

This commit is contained in:
Tony Lambregts
2006-01-28 23:06:07 +00:00
committed by WineHQ
parent 767faeac75
commit 9afa15776e

View File

@@ -207,7 +207,7 @@ class Version {
/**
* Update version.
*/
function update()
function update($bSilent=false)
{
$sWhatChanged = "";
@@ -270,7 +270,7 @@ class Version {
$sWhatChanged .= "Version was moved from application ".$oAppBefore->sName." to application ".$oAppAfter->sName.".\n\n";
}
if($sWhatChanged)
if($sWhatChanged and !$bSilent)
$this->SendNotificationMail("edit",$sWhatChanged);
return true;
}
@@ -367,9 +367,6 @@ class Version {
// we send an e-mail to intersted people
$this->mailSubmitter("unQueue");
$this->SendNotificationMail();
// the version has been unqueued
addmsg("The version has been unqueued.", "green");
}
}