This commit is contained in:
Mateusz Pieła 2021-05-15 12:01:18 +02:00
parent 91e25ad3c0
commit ae66154be2
2 changed files with 10 additions and 8 deletions

View file

@ -89,13 +89,13 @@ class app
private function checkIfCompatibilityClassNeeded()
{
if(array_key_exists("HTTP_X_GITEA_DELIVERY",$_SERVER))
$comp = $_GET["comp"] ?? "";
if(array_key_exists("HTTP_X_GITEA_DELIVERY",$_SERVER) || $comp === "gitea")
{
return 'gitea';
}
if(isset($_SERVER['User-Agent']) && $_SERVER['User-Agent'] === "Grafana")
if(isset($_SERVER['User-Agent']) && $_SERVER['User-Agent'] === "Grafana" || $comp === "Grafana")
{
return 'grafana';
}