mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/11854] Migrate all old php4 constructor
PHPBB3-11854
This commit is contained in:
@@ -1862,7 +1862,7 @@ class char_cube3d
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
function char_cube3d(&$bitmaps, $letter)
|
function __construct(&$bitmaps, $letter)
|
||||||
{
|
{
|
||||||
$this->bitmap = $bitmaps['data'][$letter];
|
$this->bitmap = $bitmaps['data'][$letter];
|
||||||
$this->bitmap_width = $bitmaps['width'];
|
$this->bitmap_width = $bitmaps['width'];
|
||||||
@@ -2119,7 +2119,7 @@ class colour_manager
|
|||||||
/**
|
/**
|
||||||
* Create the colour manager, link it to the image resource
|
* Create the colour manager, link it to the image resource
|
||||||
*/
|
*/
|
||||||
function colour_manager($img, $background = false, $mode = 'ahsv')
|
function __construct($img, $background = false, $mode = 'ahsv')
|
||||||
{
|
{
|
||||||
$this->img = $img;
|
$this->img = $img;
|
||||||
$this->mode = $mode;
|
$this->mode = $mode;
|
||||||
|
@@ -26,7 +26,7 @@ class non_gd
|
|||||||
/**
|
/**
|
||||||
* Define filtered pngs on init
|
* Define filtered pngs on init
|
||||||
*/
|
*/
|
||||||
function captcha()
|
function __construct()
|
||||||
{
|
{
|
||||||
// If we can we will generate a single filtered png, we avoid nastiness via emulation of some Zlib stuff
|
// If we can we will generate a single filtered png, we avoid nastiness via emulation of some Zlib stuff
|
||||||
$this->define_filtered_pngs();
|
$this->define_filtered_pngs();
|
||||||
|
Reference in New Issue
Block a user