From cbefabd5ddf5e9a785eeaaef77e6e6d6feb2f724 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 20 Nov 2020 17:16:19 +0100 Subject: [PATCH] Verbose style compatibility for 5.2/5.3 Fixes #3737 --- wcfsetup/install/files/acp/templates/styleAdd.tpl | 2 +- wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index 7877c4dfd7..9cc88913b6 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -146,7 +146,7 @@
{lang}wcf.acp.style.apiVersion.description{/lang} diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index 82db013705..fb5e2b02b4 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -225,6 +225,12 @@ class StyleAddForm extends AbstractForm { */ public $customAssets = []; + public $supportedApiVersionsCompatibility = [ + '3.0' => '3.0', + '3.1' => '3.1', + '5.2' => '5.2 / 5.3', + ]; + /** * @inheritDoc */ @@ -887,6 +893,7 @@ class StyleAddForm extends AbstractForm { 'tmpHash' => $this->tmpHash, 'variables' => $this->variables, 'supportedApiVersions' => Style::$supportedApiVersions, + 'supportedApiVersionsCompatibility' => $this->supportedApiVersionsCompatibility, 'newVariables' => $this->newVariables, 'scrollOffsets' => $this->scrollOffsets, 'coverPhotoMinHeight' => UserCoverPhoto::MIN_HEIGHT, -- 2.20.1