0
0
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:
Edward Z. Yang 2008-05-23 17:00:58 +00:00
parent 8ab30e24b7
commit 895141e0b5
3 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -43,6 +43,7 @@ class HTMLPurifier_ConfigSchema_Builder_ConfigSchema
);
}
}
$schema->postProcess();
return $schema;
}

File diff suppressed because one or more lines are too long