Skip to content

Commit

Permalink
Use config schema singleton instance if none was provided
Browse files Browse the repository at this point in the history
xemlock committed Aug 5, 2017
1 parent ffe733f commit 659582e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/HTML5Config.php
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ class HTMLPurifier_HTML5Config
public static function create($config = null, HTMLPurifier_ConfigSchema $schema = null)
{
if (!$schema instanceof HTMLPurifier_ConfigSchema) {
$schema = HTMLPurifier_ConfigSchema::makeFromSerial();
$schema = HTMLPurifier_ConfigSchema::instance();
}

if ($config instanceof HTMLPurifier_Config) {

0 comments on commit 659582e

Please sign in to comment.