Add var commented into conf file
Fix disabled of module for demo
This commit is contained in:
parent
74f9ed029c
commit
144c410b52
@ -859,6 +859,9 @@ function write_conf_file($conffile)
|
|||||||
fputs($fp, '// Specific settings');
|
fputs($fp, '// Specific settings');
|
||||||
fputs($fp,"\n");
|
fputs($fp,"\n");
|
||||||
|
|
||||||
|
fputs($fp, '//$dolibarr_main_demo=\'autologin,autopass\';');
|
||||||
|
fputs($fp,"\n");
|
||||||
|
|
||||||
fputs($fp, '$dolibarr_main_prod=\'0\';');
|
fputs($fp, '$dolibarr_main_prod=\'0\';');
|
||||||
fputs($fp,"\n");
|
fputs($fp,"\n");
|
||||||
|
|
||||||
|
|||||||
@ -325,6 +325,11 @@ if (! empty($_SESSION["disablemodules"]))
|
|||||||
{
|
{
|
||||||
if (empty($conf->$module)) $conf->$module=new stdClass();
|
if (empty($conf->$module)) $conf->$module=new stdClass();
|
||||||
$conf->$module->enabled=false;
|
$conf->$module->enabled=false;
|
||||||
|
if ($module == 'fournisseur') // Special case
|
||||||
|
{
|
||||||
|
$conf->supplier_order->enabled=0;
|
||||||
|
$conf->supplier_invoice->enabled=0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user