Use current WCF version as minimum required version
authorAlexander Ebert <ebert@woltlab.com>
Sun, 29 Mar 2015 22:56:07 +0000 (00:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 29 Mar 2015 22:56:07 +0000 (00:56 +0200)
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 9be4250367d4d79beccdec9de28238753e191661..fb567af891fa9b0a5fcd11ec6402b0f5bef9635d 100644 (file)
@@ -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'));