diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-11 13:58:37 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-11 13:58:37 +0100 |
| commit | 0edd963f21bcbfe3f5628d76ff94a281501a9a96 (patch) | |
| tree | 319ca3aa76cf552fac1aa7758a7bacbb2fe3a672 /public | |
| parent | 7dc2d3e1266810b98758faeaf3bd4dcab04330ce (diff) | |
delete theme asset upon theme deletion, allow activation regardless of other themes state and some small touchups, fixes #6244biest-6244
Diffstat (limited to 'public')
| -rw-r--r-- | public/assets.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/assets.php b/public/assets.php index 886886b..d10b6ad 100644 --- a/public/assets.php +++ b/public/assets.php @@ -45,7 +45,7 @@ $app->get('/{type:js|css}/{id}', function (ServerRequestInterface $request, Resp $response->getBody()->write($asset->getContent()); $response = $response->withHeader('Content-Type', $args['type'] === 'css' ? 'text/css' : 'application/javascript'); - $response = $response->withHeader('Content-Length', $model->size); + $response = $response->withHeader('Content-Length', $model->size ?? 0); // Store cache information if (Studip\ENV !== 'development') { |
