From 9afa15776ebc8d98596b6002ede091d846a8af48 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Sat, 28 Jan 2006 23:06:07 +0000 Subject: [PATCH] Version class fixes. Let update() be silent if desired, get rid of redundant message in unqueue(). --- include/version.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/version.php b/include/version.php index 912b060..66a2b52 100644 --- a/include/version.php +++ b/include/version.php @@ -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"); } }