If 'replyText' is set when deleting an application we should include this reply
text when emailing the maintainers with the deletion message.
This commit is contained in:
@@ -326,6 +326,14 @@ class Application {
|
|||||||
break;
|
break;
|
||||||
case "delete":
|
case "delete":
|
||||||
$sSubject = $this->sName." has been deleted by ".$_SESSION['current']->sRealname;
|
$sSubject = $this->sName." has been deleted by ".$_SESSION['current']->sRealname;
|
||||||
|
|
||||||
|
/* if replyText is set we should report the reason the application was deleted
|
||||||
|
if($_REQUEST['replyText'])
|
||||||
|
{
|
||||||
|
$sMsg .= "Reason given:\n";
|
||||||
|
$sMsg .= $_REQUEST['replyText']."\n"; /* append the reply text, if there is any */
|
||||||
|
}
|
||||||
|
|
||||||
addmsg("Application deleted.", "green");
|
addmsg("Application deleted.", "green");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user