From af8e05999018cf882b1cf583e7423909e42e7400 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 18 Jul 2022 03:48:19 +0000 Subject: [PATCH] Renamed platform definition file --- src/Model/GServer.php | 8 ++++---- static/{generator.config.php => platforms.config.php} | 0 2 files changed, 4 insertions(+), 4 deletions(-) rename static/{generator.config.php => platforms.config.php} (100%) diff --git a/src/Model/GServer.php b/src/Model/GServer.php index e33264566e..8305a3c965 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -1896,16 +1896,16 @@ class GServer * * @return array server data */ - private static function analyseRootBody($curlResult, array $serverdata): array + private static function analyseRootBody($curlResult, array $serverdata): array { if (empty($curlResult->getBody())) { return $serverdata; } - if (file_exists(__DIR__ . '/../../static/generator.config.php')) { - require __DIR__ . '/../../static/generator.config.php'; + if (file_exists(__DIR__ . '/../../static/platforms.config.php')) { + require __DIR__ . '/../../static/platforms.config.php'; } else { - throw new HTTPException\InternalServerErrorException('Invalid generator file'); + throw new HTTPException\InternalServerErrorException('Invalid platform file'); } $platforms = array_merge($ap_platforms, $dfrn_platforms, $zap_platforms, $platforms); diff --git a/static/generator.config.php b/static/platforms.config.php similarity index 100% rename from static/generator.config.php rename to static/platforms.config.php