Fix graph_type variable (svg / png) (#15972)

This commit is contained in:
Warren Ashcroft
2024-04-26 14:33:08 +01:00
committed by GitHub
parent 443bfdb3b7
commit 1aa712e189
5 changed files with 20 additions and 16 deletions

View File

@@ -45,7 +45,7 @@ class GraphController extends Controller
throw $e;
}
return response($e->generateErrorImage(), 500, ['Content-type' => ImageFormat::forGraph()->contentType()]);
return response($e->generateErrorImage(), 500, ['Content-type' => ImageFormat::forGraph($vars['graph_type'] ?? null)->contentType()]);
}
}
}