PDA

View Full Version : Upgrading Modules to 2.01


nicovl_work
14-04-05, 02:26 AM
Hi,

I had made an adhoc module for dotProject and when I upgraded to DP 2.01 the module stopped working.

I only needed to change the following:

in /modules/modulename/index.php change:

$tabBox = new CTabBox( "?m=modulename", "{$AppUI->cfg['root_dir']}/modules/modulename/", $tab );

TO:

$tabBox = new CTabBox( "?m=modulename", dPgetConfig('root_dir')."/modules/modulename/", $tab );

This should work to upgrade very simple modules.

Hope this helps some of you.

Nico.