Welcome Guest, Not a member yet? Register   Sign In
HMVC broken in php 7.3 -- help
#9

(08-05-2019, 06:19 AM)synanhero Wrote: just change application/third_party/MX/Router.php line 239

from this 

PHP Code:
public function set_class($class)
    {
        
$suffix $this->config->item('controller_suffix');
        if (
strpos($class$suffix) === FALSE)
        {
            
$class .= $suffix;
        }
        
parent::set_class($class);
    } 


to this 

PHP Code:
public function set_class($class)
    {
        
$suffix $this->config->item('controller_suffix');
        if (
strpos(strval($class), $suffix) === FALSE)
        {
            
$class .= $suffix;
        }
        
parent::set_class($class);
    } 


tested  Angel

To me this worked but with a little tweak:

PHP Code:
public function set_class($class)
 
   {
 
       $suffix $this->config->item('controller_suffix');
 
       // if (strpos(strval($class), $suffix) === FALSE)
        
if( $suffix && strpos($class$suffix) === FALSE)
 
       {
 
           $class .= $suffix;
 
       }
 
       parent::set_class($class);
 
   
Reply


Messages In This Thread
HMVC broken in php 7.3 -- help - by admin0 - 12-13-2018, 10:13 AM
RE: HMVC broken in php 7.3 -- help - by admin0 - 12-13-2018, 10:54 AM
RE: HMVC broken in php 7.3 -- help - by InsiteFX - 12-14-2018, 03:55 AM
RE: HMVC broken in php 7.3 -- help - by admin0 - 12-14-2018, 10:54 AM
RE: HMVC broken in php 7.3 -- help - by skunkbad - 12-14-2018, 12:33 PM
RE: HMVC broken in php 7.3 -- help - by daycry - 03-28-2019, 09:56 AM
RE: HMVC broken in php 7.3 -- help - by abacoin - 09-28-2019, 06:47 PM
RE: HMVC broken in php 7.3 -- help - by gtozadori - 12-14-2018, 10:10 PM
RE: HMVC broken in php 7.3 -- help - by synanhero - 08-05-2019, 06:19 AM
RE: HMVC broken in php 7.3 -- help - by TamasD - 08-27-2019, 05:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB