mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
[3.1.1] Further optimize ConfigSchema by eliminating stdclass when only type is set.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1765 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
8ab30e24b7
commit
895141e0b5
@ -211,7 +211,10 @@ class HTMLPurifier_Config
|
||||
try {
|
||||
$value = $this->parser->parse(
|
||||
$value,
|
||||
$type = $this->def->info[$namespace][$key]->type,
|
||||
$type =
|
||||
is_int($this->def->info[$namespace][$key]) ?
|
||||
$this->def->info[$namespace][$key] :
|
||||
$this->def->info[$namespace][$key]->type,
|
||||
isset($this->def->info[$namespace][$key]->allow_null)
|
||||
);
|
||||
} catch (HTMLPurifier_VarParserException $e) {
|
||||
|
@ -43,6 +43,7 @@ class HTMLPurifier_ConfigSchema_Builder_ConfigSchema
|
||||
);
|
||||
}
|
||||
}
|
||||
$schema->postProcess();
|
||||
return $schema;
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user