mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-08 06:48:42 +00:00
Don't use PHP4-style constructors
This commit is contained in:
parent
92aabf2b23
commit
25db9e1dd0
@ -25,7 +25,7 @@ class RowTimer extends Benchmark_Timer
|
|||||||
|
|
||||||
public $name;
|
public $name;
|
||||||
|
|
||||||
public function RowTimer($name, $auto = false)
|
public function __construct($name, $auto = false)
|
||||||
{
|
{
|
||||||
$this->name = htmlentities($name);
|
$this->name = htmlentities($name);
|
||||||
$this->Benchmark_Timer($auto);
|
$this->Benchmark_Timer($auto);
|
||||||
|
@ -76,7 +76,7 @@ class Debugger
|
|||||||
public $scope_nextID = 1;
|
public $scope_nextID = 1;
|
||||||
public $add_pre = true;
|
public $add_pre = true;
|
||||||
|
|
||||||
public function Debugger()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->add_pre = !extension_loaded('xdebug');
|
$this->add_pre = !extension_loaded('xdebug');
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ class HTMLPurifier_AttrDef_CSS_Composite_Testable extends
|
|||||||
{
|
{
|
||||||
|
|
||||||
// we need to pass by ref to get the mocks in
|
// we need to pass by ref to get the mocks in
|
||||||
public function HTMLPurifier_AttrDef_CSS_Composite_Testable(&$defs)
|
public function __construct(&$defs)
|
||||||
{
|
{
|
||||||
$this->defs =& $defs;
|
$this->defs =& $defs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user