Minor code cleanup
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 12:34:38 +0000 (14:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 12:34:38 +0000 (14:34 +0200)
wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php
wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php

index 4e193f06c1acfc71cefee2b41ba27fee308c84a5..86334d9fd486f7bde91c4d860134ae8fcf5c79fb 100644 (file)
@@ -76,7 +76,7 @@ class MessageHtmlInputFilter implements IHtmlInputFilter {
         */
        protected function setAttributeDefinitions(\HTMLPurifier_Config $config) {
                $definition = $config->getHTMLDefinition(true);
-               wcfDebug($config->get('HTML.AllowedAttributes'));
+               
                // code
                $definition->addAttribute('pre', 'data-file', 'Text');
                $definition->addAttribute('pre', 'data-line', 'Number');
index 265268d4d12e6c41908f7ce368f416bfc6ad4958..7315a37b30c0b23b754e13c7fb447d34cc40d146 100644 (file)
@@ -213,7 +213,6 @@ class PackageValidationArchive implements \RecursiveIterator {
                        }
                        
                        if (!$isCompatible) {
-                               
                                throw new PackageValidationException(PackageValidationException::INCOMPATIBLE_API_VERSION, ['isOlderVersion' => $isOlderVersion]);
                        }
                }