Exclude next WCF major in exported styles
authorAlexander Ebert <ebert@woltlab.com>
Mon, 31 Aug 2015 22:00:55 +0000 (00:00 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 31 Aug 2015 22:00:55 +0000 (00:00 +0200)
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index fb567af891fa9b0a5fcd11ec6402b0f5bef9635d..4401427f9e0f3ce46ab806cfcd1d366300995fad 100644 (file)
@@ -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();