Skip to content

Commit

Permalink
Merge pull request #2599 from phili67/phili67-function-code-cleanup
Browse files Browse the repository at this point in the history
src/Include/Functions.php : code cleanup
  • Loading branch information
phili67 committed Apr 11, 2024
2 parents 7989711 + d27a2b9 commit 97e66e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
18 changes: 1 addition & 17 deletions src/Include/Functions.php
Expand Up @@ -87,20 +87,4 @@ function addslashes_deep($value)
}
}

$sGlobalMessageClass = 'success';

if (isset($_GET['Registered'])) {
$sGlobalMessage = _('Thank you for registering your EcclesiaCRM installation.');
}

if (isset($_GET['AllPDFsEmailed'])) {
$sGlobalMessage = _('PDFs successfully emailed ').$_GET['AllPDFsEmailed'].' '._('families').".";
}

if (isset($_GET['PDFEmailed'])) {
if ($_GET['PDFEmailed'] == 1) {
$sGlobalMessage = _('PDF successfully emailed to family members.');
} else {
$sGlobalMessage = _('Failed to email PDF to family members.');
}
}
$sGlobalMessageClass = 'success';
2 changes: 1 addition & 1 deletion src/Reports/ConfirmReportEmail.php
Expand Up @@ -82,7 +82,7 @@
$familyEmailSent = $fams_to_contact->renderAndSend($exportType, $minAge, $maxAge, $classList);

if ($_GET['familyId']) {
RedirectUtils::Redirect('v2/people/family/view/' . $_GET['familyId'] . '&PDFEmailed=' . $familyEmailSent);
RedirectUtils::Redirect('v2/people/family/view/' . $_GET['familyId']);
} else {
RedirectUtils::Redirect('v2/people/LettersAndLabels');
}

0 comments on commit 97e66e3

Please sign in to comment.