diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-06-29 09:28:18 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-06-29 09:33:07 +0100 |
| commit | 0d98c6418a9e63f60af0a661d40ce169a369d0dc (patch) | |
| tree | af8a7060c8d8db2bc9f95ed6fb1ac6188eb9821c | |
| parent | 4a2cd797f67119e2c4afc23d2c5b7cf1f85835f2 (diff) | |
| download | webtrees-0d98c6418a9e63f60af0a661d40ce169a369d0dc.tar.gz webtrees-0d98c6418a9e63f60af0a661d40ce169a369d0dc.tar.bz2 webtrees-0d98c6418a9e63f60af0a661d40ce169a369d0dc.zip | |
Consistent styling of status messages.
| -rw-r--r-- | family.php | 4 | ||||
| -rw-r--r-- | gedrecord.php | 2 | ||||
| -rw-r--r-- | individual.php | 4 | ||||
| -rw-r--r-- | mediaviewer.php | 2 | ||||
| -rw-r--r-- | note.php | 2 | ||||
| -rw-r--r-- | repo.php | 2 | ||||
| -rw-r--r-- | source.php | 2 |
7 files changed, 9 insertions, 9 deletions
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 '<p class="ui-state-error">', I18N::translate('This family does not exist or you do not have permission to view it.'), '</p>'; return; } @@ -126,7 +126,7 @@ if ($controller->record && $controller->record->canShow()) { $controller->printFamilyFacts(); echo '</table>'; } else { - echo '<p class="ui-state-highlight">', I18N::translate('The details of this family are private.'), '</p>'; + echo '<p>', I18N::translate('The details of this family are private.'), '</p>'; } ?> </td> diff --git a/gedrecord.php b/gedrecord.php index f4ae685d80..33243a93eb 100644 --- a/gedrecord.php +++ b/gedrecord.php @@ -85,9 +85,9 @@ if ($controller->record && $controller->record->canShow()) { } } } else { + FlashMessages::addMessage(I18N::translate('This record does not exist or you do not have permission to view it.'), 'danger'); http_response_code(404); $controller->pageHeader(); - echo '<p class="ui-state-error">', I18N::translate('This record does not exist or you do not have permission to view it.'), '</p>'; return; } diff --git a/individual.php b/individual.php index a3974bcf45..b5305e3b85 100644 --- a/individual.php +++ b/individual.php @@ -89,13 +89,13 @@ if ($controller->record && $controller->record->canShow()) { // Just show the name. $controller->pageHeader(); echo '<h2>', $controller->record->getFullName(), '</h2>'; - echo '<p class="ui-state-highlight">', I18N::translate('The details of this individual are private.'), '</p>'; + echo '<p>', I18N::translate('The details of this individual are private.'), '</p>'; return; } else { + FlashMessages::addMessage(I18N::translate('This individual does not exist or you do not have permission to view it.'), 'danger'); http_response_code(404); $controller->pageHeader(); - echo '<p class="ui-state-error">', I18N::translate('This individual does not exist or you do not have permission to view it.'), '</p>'; return; } diff --git a/mediaviewer.php b/mediaviewer.php index ea5a82c010..dcdefcc9a2 100644 --- a/mediaviewer.php +++ b/mediaviewer.php @@ -73,9 +73,9 @@ if ($controller->record && $controller->record->canShow()) { } } } else { + FlashMessages::addMessage(I18N::translate('This media object does not exist or you do not have permission to view it.'), 'danger'); http_response_code(404); $controller->pageHeader(); - echo '<p class="ui-state-error">', I18N::translate('This media object does not exist or you do not have permission to view it.'), '</p>'; return; } @@ -74,9 +74,9 @@ if ($controller->record && $controller->record->canShow()) { } } } else { + FlashMessages::addMessage(I18N::translate('This note does not exist or you do not have permission to view it.'), 'danger'); http_response_code(404); $controller->pageHeader(); - echo '<p class="ui-state-error">', I18N::translate('This note does not exist or you do not have permission to view it.'), '</p>'; return; } @@ -73,9 +73,9 @@ if ($controller->record && $controller->record->canShow()) { } } } else { + FlashMessages::addMessage(I18N::translate('This repository does not exist or you do not have permission to view it.'), 'danger'); http_response_code(404); $controller->pageHeader(); - echo '<p class="ui-state-error">', I18N::translate('This repository does not exist or you do not have permission to view it.'), '</p>'; return; } diff --git a/source.php b/source.php index 2814671d9d..2e8b17b967 100644 --- a/source.php +++ b/source.php @@ -73,9 +73,9 @@ if ($controller->record && $controller->record->canShow()) { } } } else { + FlashMessages::addMessage(I18N::translate('This source does not exist or you do not have permission to view it.'), 'danger'); http_response_code(404); $controller->pageHeader(); - echo '<p class="ui-state-error">', I18N::translate('This source does not exist or you do not have permission to view it.'), '</p>'; return; } |
