Fix some broken references

This commit is contained in:
Alex Cabal 2024-06-12 15:21:23 -05:00
parent e2ba152f8c
commit 8bcd52a40a
3 changed files with 4 additions and 6 deletions

View file

@ -210,7 +210,7 @@ class HttpInput{
} }
} }
break; break;
case Enums\HttpVariableType::DateTime: case HttpVariableType::DateTime:
if($var != ''){ if($var != ''){
try{ try{
return new DateTimeImmutable($var); return new DateTimeImmutable($var);

View file

@ -209,8 +209,8 @@ catch(Exception $ex){
$em = new Email(true); $em = new Email(true);
$em->To = ADMIN_EMAIL_ADDRESS; $em->To = ADMIN_EMAIL_ADDRESS;
$em->Subject = 'Ingesting FA donations failed'; $em->Subject = 'Ingesting FA donations failed';
$em->Body = Template::EmailDonationIngestionFailed(['exception' => preg_replace('/^/m', "\t", $exceptionString)]); $em->Body = Template::EmailDonationProcessingFailed(['exception' => preg_replace('/^/m', "\t", $exceptionString)]);
$em->TextBody = Template::EmailDonationIngestionFailedText(['exception' => preg_replace('/^/m', "\t", $exceptionString)]); $em->TextBody = Template::EmailDonationProcessingFailedText(['exception' => preg_replace('/^/m', "\t", $exceptionString)]);
$em->Send(); $em->Send();
throw $ex; throw $ex;

View file

@ -6,8 +6,6 @@
<body> <body>
<h1>Donation processing failed</h1> <h1>Donation processing failed</h1>
<p>The donation processing script failed with this exception:</p> <p>The donation processing script failed with this exception:</p>
<pre> <pre><?= $exception ?></pre>
<?= $exception ?>
</pre>
</body> </body>
</html> </html>