From 87cb1627e50db8e0818049788bc2d99b20b16fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sat, 30 Dec 2006 06:13:46 +0000 Subject: [PATCH] Add a URL to the application/version and a few line breaks. --- include/maintainer.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/maintainer.php b/include/maintainer.php index 18ca1b6..17c6437 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -82,13 +82,19 @@ class maintainer $sEmail = $oUser->sEmail; if ($sEmail) { + if($this->iVersionId) + $sURL = APPDB_ROOT."appview.php?iVersionId=$this->iVersionId"; + else + $sURL = APPDB_ROOT."appview.php?iAppId=$this->iAppId"; + $sSubject = "Application Maintainer Request Report"; - $sMsg = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted. "; - $sMsg .= $sReplyText; + $sMsg = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." has been accepted.\n"; + $sMsg .= "$sURL\n"; + $sMsg .= "$sReplyText\n"; $sMsg .= "We appreciate your help in making the Application Database better for all users.\n\n"; mail_appdb($sEmail, $sSubject ,$sMsg); - } + } } } else {