From: Alexander Ebert Date: Sun, 15 Dec 2013 17:03:52 +0000 (+0100) Subject: Adding requirement to package.xml generated by style export X-Git-Tag: 2.0.1~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a47700c77acff475f5827f07b8c84d624b24585;p=GitHub%2FWoltLab%2FWCF.git Adding requirement to package.xml generated by style export --- diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 25ab7bf8b8..5de7012b2d 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -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();