mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-07 06:36:44 +02:00
[3.1.0] Move ConfigSchema to HTMLPurifier core
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1576 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -21,7 +21,7 @@ $namespaces = array();
|
||||
$directives = array();
|
||||
|
||||
// Generate string hashes
|
||||
$parser = new ConfigSchema_StringHashParser();
|
||||
$parser = new HTMLPurifier_ConfigSchema_StringHashParser();
|
||||
foreach ($files as $file) {
|
||||
$hash = $parser->parseFile($file);
|
||||
if (strpos($hash['ID'], '.') === false) {
|
||||
@@ -31,7 +31,7 @@ foreach ($files as $file) {
|
||||
}
|
||||
}
|
||||
|
||||
$adapter = new ConfigSchema_StringHashAdapter();
|
||||
$adapter = new HTMLPurifier_ConfigSchema_StringHashAdapter();
|
||||
$schema = new HTMLPurifier_ConfigSchema();
|
||||
|
||||
foreach ($namespaces as $hash) $adapter->adapt($hash, $schema);
|
||||
|
Reference in New Issue
Block a user