From 39286f7169adfc396853c658d01b4abd1560fb41 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 27 Mar 2014 18:57:36 +0100 Subject: [PATCH] Improve code comments in code from previous commit --- wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php index f31756c1ab..830a90503b 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleImportForm.class.php @@ -72,11 +72,12 @@ class StyleImportForm extends AbstractForm { $archive = new PackageArchive($this->source['tmp_name']); $archive->openArchive(); - // check if the package includes a style + // check if the package is an application if ($archive->getPackageInfo('isApplication')) { throw new SystemException("Package is application"); } + // check if the package includes a style $containsStyle = false; $installInstructions = $archive->getInstallInstructions(); foreach ($installInstructions as $instruction) { -- 2.20.1