Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

php7 fixes #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions classes/basic/class.rex_radio.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ class rex_radio
var $options;
var $option_selected;

// this is the new style constructor used by newer php versions.
// important: if you change the signatur of this method, change also the signature of rex_radio()
function __construct()
{
$this->rex_radio();
}

// this is the deprecated old style constructor kept for compat reasons.
// important: if you change the signatur of this method, change also the signature of __construct()
public function rex_radio()
{
$this->init();
Expand Down
9 changes: 9 additions & 0 deletions classes/basic/class.rex_xform.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
class rex_xform
{

// this is the new style constructor used by newer php versions.
// important: if you change the signatur of this method, change also the signature of rex_xform()
function __construct()
{
$this->rex_xform();
}

// this is the deprecated old style constructor kept for compat reasons.
// important: if you change the signatur of this method, change also the signature of __construct()
function rex_xform()
{
global $REX;
Expand Down
10 changes: 10 additions & 0 deletions ext/captcha/class.captcha_x.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ class captcha_x
* @return void
* @constructor
*/

// this is the new style constructor used by newer php versions.
// important: if you change the signatur of this method, change also the signature of captcha_x()
function __construct()
{
$this->captcha_x();
}

// this is the deprecated old style constructor kept for compat reasons.
// important: if you change the signatur of this method, change also the signature of __construct()
function captcha_x()
{
$this->INI = parse_ini_file( dirname( __FILE__) . '/captcha_x.ini', true);
Expand Down
9 changes: 9 additions & 0 deletions plugins/manager/classes/basic/class.rex_xform_manager.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ class rex_xform_manager

protected static $reservedFieldColumns = array('id', 'table_name', 'prio', 'type_id', 'type_name', 'list_hidden', 'search');

// this is the new style constructor used by newer php versions.
// important: if you change the signatur of this method, change also the signature of rex_xform_manager()
function __construct()
{
$this->rex_xform_manager();
}

// this is the deprecated old style constructor kept for compat reasons.
// important: if you change the signatur of this method, change also the signature of __construct()
function rex_xform_manager()
{
$this->setDataPageFunctions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ class rex_xform_manager_search
/** @type rex_xform_manager_table */
protected $table = null;

// this is the new style constructor used by newer php versions.
// important: if you change the signatur of this method, change also the signature of rex_xform_manager_search()
function __construct(rex_xform_manager_table $table)
{
$this->rex_xform_manager_search($table);
}

// this is the deprecated old style constructor kept for compat reasons.
// important: if you change the signatur of this method, change also the signature of __construct()
public function rex_xform_manager_search(rex_xform_manager_table $table)
{
$this->table = $table;
Expand Down