View Single Post
  #89  
Old 05-31-2011, 11:57 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: X-Cart v4.4.3 released

Here's a possible solution for modules that no longer load correctly in 4.4.3. In init.php find this:
PHP Code:
if (is_readable($_config_file)) {
     include 
$_config_file;

After that add this:
PHP Code:
$modulesToFix = array(
    
"MY_Cool_Mod"
);
if (
in_array($active_module,$modulesToFix)) {
        
$_func_file   $_module_dir XC_DS 'func.php';
        if (
            
file_exists($_func_file)
            && 
is_readable($_func_file)
        ) {
            include 
$_func_file;
        }

Just add a suspect module to the array. After a quick test that seemed to do the trick. This is not thoroughly tested.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux