summaryrefslogtreecommitdiff
path: root/source.php
diff options
context:
space:
mode:
Diffstat (limited to 'source.php')
-rw-r--r--source.php2
1 files changed, 1 insertions, 1 deletions
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;
}