• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HMVC broken in php 7.3 -- help

#11
(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 = (string)  $this->config->item('controller_suffix');
  if ($suffix && strpos(strval($class), $suffix) === FALSE)
  {
    $class .= $suffix;
  }
  parent::set_class($class);



tested  Angel       
  Smile   Yes .... it works for me also.   Smile
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.