1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 21:57:26 +02:00

[3.1.1] Migrate all HTMLModules to use setup($config) rather than __construct

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1761 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-05-22 19:36:59 +00:00
parent 8d0d0d1a03
commit fcebb7731d
16 changed files with 20 additions and 17 deletions

7
NEWS
View File

@@ -23,9 +23,12 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
to __construct($min, $max). __construct(true) is equivalent to
__construct('0').
. Added HTMLPurifier_AttrDef_Switch class
. Rename HTMLPurifier_HTMLModule_Tidy->construct() to setup(), and bubble
. Rename HTMLPurifier_HTMLModule_Tidy->construct() to setup() and bubble method
up inheritance hierarchy to HTMLPurifier_HTMLModule. All HTMLModules
get this called with the configuration object.
get this called with the configuration object. All modules now
use this rather than __construct(), although legacy code using constructors
will still work--the new format, however, lets modules access the
configuration object for HTML namespace dependant tweaks.
3.1.0, released 2008-05-18
# Unnecessary references to objects (vestiges of PHP4) removed from method