From 3d1d86cdd8a97298988e0aceb0808c067b4ecdfa Mon Sep 17 00:00:00 2001 From: WineHQ Date: Wed, 1 Aug 2007 02:19:33 +0000 Subject: [PATCH] =?UTF-8?q?Authors:=20Alexander=20Nicolaysen=20S=C3=B8rnes?= =?UTF-8?q?=20,=20Chris=20Morgan=20=20Clean=20up=20some=20html=20in=20maintainer=20notific?= =?UTF-8?q?ation=20emails,=20add=20information=20about=20who=20the=20email?= =?UTF-8?q?=20is=20addressed=20to=20so=20there=20is=20some=20way=20to=20se?= =?UTF-8?q?e=20who=20the=20notification=20system=20is=20notifying.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/maintainer.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/maintainer.php b/include/maintainer.php index 3cf36c2..e2c62e6 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -930,20 +930,21 @@ class maintainer // construct the subject of the notification email that we may send $sSubject = "Notification of queued data for "; - $sMsg = "You are receiving this email to notify you that there is queued data"; + $sMsg = ""; + $sMsg.= "Hello ".$oUser->sRealname."<".$oUser->sEmail.">".".\n\n"; + $sMsg.= "You are receiving this email to notify you that there is queued data"; $sMsg.=" for the "; if($this->bSuperMaintainer) { $oApp = new Application($this->iAppId); $sSubject.= $oApp->sName; - $sMsg.='application, '.$oApp->objectMakeLink().', that you maintain.'."\n"; + $sMsg.='application, '.$oApp->sName.'('.$oApp->objectMakeUrl().'), that you maintain.'."\n"; } else { $sFullname = version::fullName($this->iVersionId); $oVersion = new Version($this->iVersionId); $sSubject.= $sFullname; - $sMsg.='version, '.$sFullname. - ', that you maintain.'."\n"; + $sMsg.='version, '.$sFullname.'('.$oVersion->objectMakeUrl().'), that you maintain.'."\n"; } $sSubject.=" ready for your processing"; @@ -964,8 +965,8 @@ class maintainer { $oVersion = new Version($iVersionId); - $sMsg .= 'Version '.$sFullname. - ' is queued and ready for processing.'; + $sMsg .= 'Version '.$sFullname.' ('.$oVersion->objectMakeUrl().'">'.$sFullname. + ') is queued and ready for processing.'; $iSubmitTime = strtotime($oVersion->sSubmitTime); @@ -981,8 +982,8 @@ class maintainer { // FIXME: should use a function to generate these urls and use it here and // in sidebar_maintainer.php and sidebar_admin.php - $sMsg = 'Please visit AppDB Version queue to process queued versions for applications you maintain.\n'; + $sMsg = 'Please visit the test data queue ('.APPDB_ROOT."objectManager.php?sClass=version_queue&bIsQueue=true&sTitle=". + "Version%20Queue".') to process queued versions for applications you maintain.\n'; } //////////////////