From: Marcel Werk Date: Fri, 15 Jul 2016 14:29:32 +0000 (+0200) Subject: Removed obsolete code X-Git-Tag: 3.0.0_Beta_1~1121 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4470432a97ba2c121afb03195f7c0f2d0d801bbd;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete code --- diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index 32102545f5..efd170bb27 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -319,35 +319,6 @@ class PackageArchive { } } - // get php requirements - /*$requirements = $xpath->query('./ns:phprequirements', $package); - foreach ($requirements as $requirement) { - $elements = $xpath->query('child::*', $requirement); - foreach ($elements as $element) { - switch ($element->tagName) { - case 'version': - $this->phpRequirements['version'] = $element->nodeValue; - break; - - case 'setting': - $this->phpRequirements['settings'][$element->getAttribute('name')] = $element->nodeValue; - break; - - case 'extension': - $this->phpRequirements['extensions'][] = $element->nodeValue; - break; - - case 'function': - $this->phpRequirements['functions'][] = $element->nodeValue; - break; - - case 'class': - $this->phpRequirements['classes'][] = $element->nodeValue; - break; - } - } - }*/ - // add com.woltlab.wcf to package requirements if (!isset($this->requirements['com.woltlab.wcf']) && $this->packageInfo['name'] != 'com.woltlab.wcf') { $this->requirements['com.woltlab.wcf'] = ['name' => 'com.woltlab.wcf'];