1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

[1.7.0] Refactor HTMLDefinition and CSSDefinition to have a common Definition parent, rename setup() to doSetup() and make setup() call the template method after setting the setup variable. Test for references in ConfigTest.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1091 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-05-24 21:50:43 +00:00
parent 7a3e06d4d0
commit a62f8971e4
5 changed files with 28 additions and 39 deletions

View File

@@ -200,11 +200,11 @@ class HTMLPurifier_Config
$this->html_definition = HTMLPurifier_HTMLDefinition::getCache($this);
if ($this->html_definition) return $this->html_definition;
}
$this->html_definition = new HTMLPurifier_HTMLDefinition($this);
$this->html_definition = new HTMLPurifier_HTMLDefinition();
if ($raw) return $this->html_definition; // no setup!
}
if (!$this->html_definition->setup) {
$this->html_definition->setup();
$this->html_definition->setup($this);
$this->html_definition->saveCache($this);
}
return $this->html_definition;