diff --git a/app/controllers/general.php b/app/controllers/general.php index a4b2cabdab..e5d9bd4b83 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -554,8 +554,8 @@ App::init() if (version_compare($responseFormat, '1.5.0', '<')) { $response->addFilter(new ResponseV17()); } - if (version_compare($responseFormat, APP_VERSION_FORMAT, '>')) { - $response->addHeader('X-Appwrite-Warning', "The current SDK is built for Appwrite ${responseFormat}. However, the current Appwrite server version is ${APP_VERSION_STABLE}. Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks"); + if (version_compare($responseFormat, APP_VERSION_STABLE, '>')) { + $response->addHeader('X-Appwrite-Warning', "The current SDK is built for Appwrite " . $responseFormat . ". However, the current Appwrite server version is ". APP_VERSION_STABLE . ". Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks"); } } diff --git a/app/init.php b/app/init.php index 4fa58a3e07..57ad5fab87 100644 --- a/app/init.php +++ b/app/init.php @@ -114,7 +114,6 @@ const APP_USER_ACCCESS = 24 * 60 * 60; // 24 hours const APP_CACHE_UPDATE = 24 * 60 * 60; // 24 hours const APP_CACHE_BUSTER = 432; const APP_VERSION_STABLE = '1.5.6'; -const APP_VERSION_FORMAT = '1.5.0'; // Response format version, typically the last minor version const APP_DATABASE_ATTRIBUTE_EMAIL = 'email'; const APP_DATABASE_ATTRIBUTE_ENUM = 'enum'; const APP_DATABASE_ATTRIBUTE_IP = 'ip';