Fix
This commit is contained in:
parent
91e25ad3c0
commit
ae66154be2
2 changed files with 10 additions and 8 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue