From: Alexander Ebert Date: Wed, 13 Nov 2019 12:42:31 +0000 (+0100) Subject: Exclude the Core 6.0 for styles exported as packages X-Git-Tag: 5.2.0_Beta_3~2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3bf5c7a79a2a47576bd5d04231c989db9783643;p=GitHub%2FWoltLab%2FWCF.git Exclude the Core 6.0 for styles exported as packages --- diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 0d3ed05a98..0c3c0aea47 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -40,15 +40,13 @@ use wcf\util\XMLWriter; * @mixin Style */ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject { - /** - * @deprecated 3.1 use the compatibility api versions instead - */ - const EXCLUDE_WCF_VERSION = '3.2.0 Alpha 1'; + const EXCLUDE_WCF_VERSION = '6.0.0 Alpha 1'; const INFO_FILE = 'style.xml'; /** * list of compatible API versions * @var integer[] + * @deprecated 5.2 */ public static $compatibilityApiVersions = [2018]; @@ -931,6 +929,11 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject $xml->writeElement('requiredpackage', 'com.woltlab.wcf', ['minversion' => PackageCache::getInstance()->getPackageByIdentifier('com.woltlab.wcf')->packageVersion]); $xml->endElement(); + $xml->startElement('excludedpackages'); + $xml->writeElement('excludedpackage', 'com.woltlab.wcf', ['version' => self::EXCLUDE_WCF_VERSION]); + $xml->endElement(); + + // @deprecated 5.2 $xml->startElement('compatibility'); foreach (self::$compatibilityApiVersions as $apiVersion) { $xml->writeElement('api', '', ['version' => $apiVersion]);