From 9ca7f9e5f83d63aaefc2055e119fbbc1b26e4f5f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 26 Sep 2017 14:34:38 +0200 Subject: [PATCH] Minor code cleanup --- .../system/html/input/filter/MessageHtmlInputFilter.class.php | 2 +- .../package/validation/PackageValidationArchive.class.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php index 4e193f06c1..86334d9fd4 100644 --- a/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php +++ b/wcfsetup/install/files/lib/system/html/input/filter/MessageHtmlInputFilter.class.php @@ -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'); diff --git a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php index 265268d4d1..7315a37b30 100644 --- a/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/validation/PackageValidationArchive.class.php @@ -213,7 +213,6 @@ class PackageValidationArchive implements \RecursiveIterator { } if (!$isCompatible) { - throw new PackageValidationException(PackageValidationException::INCOMPATIBLE_API_VERSION, ['isOlderVersion' => $isOlderVersion]); } } -- 2.20.1