From: Alexander Ebert Date: Mon, 31 Aug 2015 22:00:55 +0000 (+0200) Subject: Exclude next WCF major in exported styles X-Git-Tag: 2.1.7~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ad09909bf008bca5382c9192ca7a31163fc3adb9;p=GitHub%2FWoltLab%2FWCF.git Exclude next WCF major in exported styles --- diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index fb567af891..4401427f9e 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -36,6 +36,7 @@ use wcf\util\XMLWriter; * @category Community Framework */ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject { + const EXCLUDE_WCF_VERSION = '2.2.0 Alpha 1'; const INFO_FILE = 'style.xml'; /** @@ -754,6 +755,10 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject $xml->writeElement('requiredpackage', 'com.woltlab.wcf', array('minversion' => PackageCache::getInstance()->getPackageByIdentifier('com.woltlab.wcf')->packageVersion)); $xml->endElement(); + $xml->startElement('excludedpackages'); + $xml->writeElement('excludedpackage', 'com.woltlab.wcf', array('version' => self::EXCLUDE_WCF_VERSION)); + $xml->endElement(); + $xml->startElement('instructions', array('type' => 'install')); $xml->writeElement('instruction', basename($styleTarName), array('type' => 'style')); $xml->endElement();