From ad09909bf008bca5382c9192ca7a31163fc3adb9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 1 Sep 2015 00:00:55 +0200 Subject: [PATCH] Exclude next WCF major in exported styles --- wcfsetup/install/files/lib/data/style/StyleEditor.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.20.1