From: Matthias Schmidt Date: Thu, 27 Mar 2014 17:57:36 +0000 (+0100) Subject: Improve code comments in code from previous commit X-Git-Tag: 2.1.0_Alpha_1~945 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39286f7169adfc396853c658d01b4abd1560fb41;p=GitHub%2FWoltLab%2FWCF.git Improve code comments in code from previous commit --- 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) {