Fix admin response in submitter notifications. Some code was in the wrong place inside of a

switch statement
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-14 00:52:57 +00:00
committed by WineHQ
parent fc03cb827f
commit ca8e4f56df

View File

@@ -372,7 +372,7 @@ class Application {
{ {
case "add": case "add":
$sSubject = "Submitted application accepted"; $sSubject = "Submitted application accepted";
$sMsg = "The application you submitted (".$this->sName.") has been accepted by ".$_SESSION['current']->sRealname."."; $sMsg = "The application you submitted (".$this->sName.") has been accepted by ".$_SESSION['current']->sRealname.".\n";
$sMsg .= "Administrator's Response:\n"; $sMsg .= "Administrator's Response:\n";
break; break;
case "reject": case "reject":
@@ -390,10 +390,11 @@ class Application {
$sMsg = "The application you submitted (".$this->sName.") has been deleted by ".$_SESSION['current']->sRealname."."; $sMsg = "The application you submitted (".$this->sName.") has been deleted by ".$_SESSION['current']->sRealname.".";
$sMsg .= "Reason given:\n"; $sMsg .= "Reason given:\n";
break; break;
}
$sMsg .= $aClean['sReplyText']."\n"; $sMsg .= $aClean['sReplyText']."\n";
$sMsg .= "We appreciate your help in making the Application Database better for all users."; $sMsg .= "We appreciate your help in making the Application Database better for all users.";
}
mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg); mail_appdb($oSubmitter->sEmail, $sSubject ,$sMsg);
} }
} }