From 0d98c6418a9e63f60af0a661d40ce169a369d0dc Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 29 Jun 2016 09:28:18 +0100 Subject: Consistent styling of status messages. --- family.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'family.php') diff --git a/family.php b/family.php index d25708bac9..319516fb08 100644 --- a/family.php +++ b/family.php @@ -78,9 +78,9 @@ if ($controller->record && $controller->record->canShow()) { // Continue - to display the children/parents/grandparents. // We'll check for showing the details again later } else { + FlashMessages::addMessage(I18N::translate('This family does not exist or you do not have permission to view it.'), 'danger'); http_response_code(404); $controller->pageHeader(); - echo '

', I18N::translate('This family does not exist or you do not have permission to view it.'), '

'; return; } @@ -126,7 +126,7 @@ if ($controller->record && $controller->record->canShow()) { $controller->printFamilyFacts(); echo ''; } else { - echo '

', I18N::translate('The details of this family are private.'), '

'; + echo '

', I18N::translate('The details of this family are private.'), '

'; } ?> -- cgit v1.3