Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Mon, 8 Aug 2016 14:13:53 +0000 (16:13 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 8 Aug 2016 14:13:53 +0000 (16:13 +0200)
wcfsetup/install/files/acp/templates/packageStartInstall.tpl
wcfsetup/install/files/lib/system/cli/command/PackageCLICommand.class.php
wcfsetup/install/files/lib/system/package/PackageArchive.class.php

index ab51fafb2d00a97541f0f5bac40688531510e2cf..82399ff468b3683e710a12a5dc34928d68005d7a 100644 (file)
@@ -89,9 +89,6 @@
                                                        <small class="innerError">
                                                                {if $errorType == 'empty'}
                                                                        {lang}wcf.global.form.error.empty{/lang}
-                                                               {elseif $errorType == 'phpRequirements'}
-                                                                       {* todo: use language variable (-> else) *}
-                                                                       <pre>{$phpRequirements|print_r}</pre>
                                                                {else}
                                                                        {lang}wcf.acp.package.error.{@$errorType}{/lang}
                                                                {/if}
index 5bd08ff739afe306c8427fc163f8ee063e98f7ad..ba3ec95b8f536a1cfbe939378268a786fc8a1f8a 100644 (file)
@@ -108,11 +108,6 @@ class PackageCLICommand implements IArgumentedCLICommand {
                catch (SystemException $e) {
                        $this->error('noValidPackage');
                }
-               $errors = PackageInstallationDispatcher::validatePHPRequirements($archive->getPhpRequirements());
-               if (!empty($errors)) {
-                       // TODO: Nice output
-                       $this->error('phpRequirements', ['errors' => $errors]);
-               }
                
                // try to find existing package
                $sql = "SELECT  *
index efd170bb275542528afbf9f68e6cc2ab72fd542f..687b4a94a99c43f64b990559e5e2c04a7b99084a 100644 (file)
@@ -75,12 +75,6 @@ class PackageArchive {
                'update' => []
        ];
        
-       /**
-        * list of php requirements
-        * @var mixed[][]
-        */
-       protected $phpRequirements = [];
-       
        /**
         * default name of the package.xml file
         * @var string
@@ -832,8 +826,9 @@ class PackageArchive {
         * Returns a list of php requirements for current package.
         * 
         * @return      mixed[][]
+        * @deprecated  3.0
         */
        public function getPhpRequirements() {
-               return $this->phpRequirements;
+               return [];
        }
 }