mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Use 404 page for deleted content request (#5682)
This commit is contained in:
parent
709b35fed7
commit
60f841b0a2
@ -6,6 +6,7 @@ HumHub Changelog
|
||||
- Fix: #5652: Fix undefined UrlOembed provider pattern
|
||||
- Fix #5660: Individual modules marked with "Official" label in Marketplace
|
||||
- Fix #5657: Fix links of user counters in container headers
|
||||
- Fix #5676: Use 404 page for deleted content request
|
||||
|
||||
|
||||
1.11.1 (April 22, 2022)
|
||||
|
@ -90,7 +90,7 @@ class ContentAddonController extends Controller
|
||||
$target = $modelClass::findOne(['id' => $pk]);
|
||||
|
||||
if ($target === null) {
|
||||
throw new HttpException(500, 'Could not find underlying content or content addon record!');
|
||||
throw new HttpException(404, 'Could not find underlying content or content addon record!');
|
||||
}
|
||||
|
||||
if ($target instanceof ContentAddonActiveRecord) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user