mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-05 05:37:49 +02:00
[3.1.0] Initial validator implementation for namespaces.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1622 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -11,12 +11,12 @@ class HTMLPurifier_ConfigSchema_Interchange
|
||||
/**
|
||||
* Array of Namespace ID => array(namespace info)
|
||||
*/
|
||||
public $namespaces;
|
||||
public $namespaces = array();
|
||||
|
||||
/**
|
||||
* Array of Directive ID => array(directive info)
|
||||
*/
|
||||
public $directives;
|
||||
public $directives = array();
|
||||
|
||||
/**
|
||||
* Adds a namespace array to $namespaces
|
||||
@@ -29,7 +29,7 @@ class HTMLPurifier_ConfigSchema_Interchange
|
||||
* Adds a directive array to $directives
|
||||
*/
|
||||
public function addDirective($directive) {
|
||||
$this->directives[(string) $directive->id] = $directive;
|
||||
$this->directives[$directive->id->__toString()] = $directive;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user