View Single Post
  #40  
Old 05-12-2011, 09:25 PM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: X-Cart v4.4.3 released

Quote:
Originally Posted by BCSE
we're finding that 4.4.3 is breaking most 3rd party modules out there.

The module initialization routine has been changed and optimized in 4.4.3. Here are the patch which describes the main changes: DIFF_55111.patch.txt

Basically, to initialize your module in X-Cart 4.4.3, you should modify your module's configuration file, for example:

modules/Your_Addon_Module/config.php

and add the following code:

Quote:
$_module_dir = $xcart_dir . XC_DS . 'modules' . XC_DS . 'Your_Addon_Module';
/*
Load module functions
*/
if (!empty($include_func))
require_once $_module_dir . XC_DS . 'func.php';

/*
Module initialization
*/
if (!empty($include_init))
include $_module_dir . XC_DS . 'init.php';

before this line:

Quote:
?>
Attached Files
File Type: txt DIFF_55111.patch.txt (99.3 KB, 16 views)
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart

Last edited by seyfin : 05-12-2011 at 10:30 PM.