diff options
Diffstat (limited to 'repo.php')
| -rw-r--r-- | repo.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -68,7 +68,7 @@ if ($controller->record && $controller->record->canShow()) { } } } else { - header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); + http_response_code(404); $controller->pageHeader(); echo '<p class="ui-state-error">', WT_I18N::translate('This repository does not exist or you do not have permission to view it.'), '</p>'; |
