Skip to content

Commit

Permalink
remove deprecated call to CI_Model::__construct() (#513)
Browse files Browse the repository at this point in the history
In future CI3 version 3.2.0, that constructor is entirely removed,
which would result in fatal errors on attempts to call it.

See: https://github.com/bcit-ci/CodeIgniter/blob/develop/user_guide_src/source/installation/upgrade_320.rst
  • Loading branch information
alexandergotts committed Feb 17, 2024
1 parent 21fccac commit 8537ad5
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 59 deletions.
2 changes: 0 additions & 2 deletions application/core/MY_Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class MY_Model extends CI_Model {
*/
public function __construct()
{
parent::__construct();

set_error_handler(function($errno, $errstr, $errfile, $errline) {
throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Blacklist_number_model extends CI_Model {

function __construct()
{
parent::__construct();
$this->load->helper('kalkun');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Server_alert_model extends CI_Model {

function __construct()
{
parent::__construct();
$this->load->helper('kalkun');
}

Expand Down
12 changes: 0 additions & 12 deletions application/plugins/sms_credit/models/Sms_credit_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@

class Sms_credit_model extends CI_Model {

/**
* Constructor
*
* @access public
*/
function __construct()
{
parent::__construct();
}

// --------------------------------------------------------------------

/**
* Get Users
*
Expand Down
12 changes: 0 additions & 12 deletions application/plugins/sms_member/models/Sms_member_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@
*/
class Sms_member_model extends CI_Model {

/**
* Constructor
*
* @access public
*/
function __construct()
{
parent::__construct();
}

// --------------------------------------------------------------------

/**
* Get Member
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
*/
class Sms_to_email_model extends CI_Model {

function __construct()
{
parent::__construct();
}

function get_setting($uid)
{
$this->db->from('plugin_sms_to_email');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
*/
class Sms_to_twitter_model extends CI_Model {

function __construct()
{
parent::__construct();
}

function check_token($uid)
{
$exist = FALSE;
Expand Down
5 changes: 0 additions & 5 deletions application/plugins/sms_to_xmpp/models/Sms_to_xmpp_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
*/
class Sms_to_xmpp_model extends CI_Model {

function __construct()
{
parent::__construct();
}

function check_status($uid)
{
$exist = FALSE;
Expand Down
1 change: 0 additions & 1 deletion application/plugins/soap/models/Api_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

function Plugin_model()
{
parent::__construct();
$this->load->library('Remote_Messages');
}

Expand Down
5 changes: 0 additions & 5 deletions application/plugins/soap/models/Soap_model.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?php
Class Soap_model extends CI_Model {

function __construct()
{
parent::__construct();
}

function getRemoteAccess($option = NULL, $limit = NULL, $offset = NULL)
{
switch ($option)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@

class Stop_manager_model extends CI_Model {

function __construct()
{
parent::__construct();
}

function get($option = NULL, $limit = NULL, $offset = NULL)
{
switch ($option)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
*/
class Whitelist_number_model extends CI_Model {

function __construct()
{
parent::__construct();
}

function get($option = NULL, $limit = NULL, $offset = NULL)
{
switch ($option)
Expand Down

0 comments on commit 8537ad5

Please sign in to comment.