Export styles using `<compatibility>` rather than excludes
authorAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jan 2018 17:15:10 +0000 (18:15 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jan 2018 17:15:10 +0000 (18:15 +0100)
Closes #2518

wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index e92f208ded72c3b84b34f4c8495ed0544a1e4d88..2283ec34f713ba2fc57ddc36b64b221cf5dbe47d 100644 (file)
@@ -887,8 +887,8 @@ 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->startElement('compatibility');
+                       $xml->writeElement('api', '', ['version' => 2018]);
                        $xml->endElement();
                        
                        $xml->startElement('instructions', ['type' => 'install']);