From: Alexander Ebert Date: Tue, 26 Sep 2017 12:34:38 +0000 (+0200) Subject: Minor code cleanup X-Git-Tag: 3.1.0_Beta_1~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ca7f9e5f83d63aaefc2055e119fbbc1b26e4f5f;p=GitHub%2FWoltLab%2FWCF.git Minor code cleanup --- 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]); } }