Adding requirement to package.xml generated by style export
authorAlexander Ebert <ebert@woltlab.com>
Sun, 15 Dec 2013 17:03:52 +0000 (18:03 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 15 Dec 2013 17:03:52 +0000 (18:03 +0100)
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 25ab7bf8b8a91dc6c33c08f4ed9ce878d749bb73..5de7012b2d487ee2fc1732abc807e6b5f77959bb 100644 (file)
@@ -740,6 +740,10 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                        if ($this->authorURL) $xml->writeElement('authorurl', $this->authorURL);
                        $xml->endElement();
                        
+                       $xml->startElement('requiredpackages');
+                       $xml->writeElement('requiredpackage', 'com.woltlab.wcf', array('minversion' => '2.0.0'));
+                       $xml->endElement();
+                       
                        $xml->startElement('instructions', array('type' => 'install'));
                        $xml->writeElement('instruction', basename($styleTarName), array('type' => 'style'));
                        $xml->endElement();