From 7a47700c77acff475f5827f07b8c84d624b24585 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 15 Dec 2013 18:03:52 +0100 Subject: [PATCH] Adding requirement to package.xml generated by style export --- wcfsetup/install/files/lib/data/style/StyleEditor.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.20.1