From dd64c08642535a4771e7ff9e834b9703c987943c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 11 Jun 2014 13:40:24 +0200 Subject: [PATCH] Fixed package validation process --- .../files/lib/acp/form/PackageStartInstallForm.class.php | 6 +----- wcfsetup/install/lang/de.xml | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php b/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php index 28f8cadafe..5529fd025d 100755 --- a/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PackageStartInstallForm.class.php @@ -137,11 +137,7 @@ class PackageStartInstallForm extends AbstractForm { throw new UserInputException('uploadPackage', 'uploadFailed'); } - if (!PackageValidationManager::getInstance()->validate($this->uploadPackage['name'], false)) { - // TODO: do something - die("validation failed: " . PackageValidationManager::getInstance()->getExceptionMessage()); - } - + PackageValidationManager::getInstance()->validate($this->uploadPackage['name'], false); $this->package = PackageValidationManager::getInstance()->getPackageValidationArchive()->getPackage(); } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index d9dd262e74..8e01e62e07 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1083,6 +1083,7 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> + {foreach from=$packages item=package}
  • „{$package}“ ({$package->package})
  • {/foreach}]]>
  • Die Datei wurde dem Archiv nicht hinzugefügt
  • Die Datei existiert, jedoch sind der Dateiname und die Angabe in den Anweisungen abweichend (Tippfehler)
  • ]]>
    -- 2.20.1