From 4470432a97ba2c121afb03195f7c0f2d0d801bbd Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 15 Jul 2016 16:29:32 +0200 Subject: [PATCH] Removed obsolete code --- .../system/package/PackageArchive.class.php | 29 ------------------- 1 file changed, 29 deletions(-) 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']; -- 2.20.1