From 0bc22cee0726920e4931b578bccb65cc88a20a90 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 30 Mar 2015 00:56:07 +0200 Subject: [PATCH] Use current WCF version as minimum required version --- wcfsetup/install/files/lib/data/style/StyleEditor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 9be4250367..fb567af891 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -751,7 +751,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject $xml->endElement(); $xml->startElement('requiredpackages'); - $xml->writeElement('requiredpackage', 'com.woltlab.wcf', array('minversion' => '2.0.0')); + $xml->writeElement('requiredpackage', 'com.woltlab.wcf', array('minversion' => PackageCache::getInstance()->getPackageByIdentifier('com.woltlab.wcf')->packageVersion)); $xml->endElement(); $xml->startElement('instructions', array('type' => 'install')); -- 2.20.1