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 {