Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
5c01965e9e
4 changed files with 16 additions and 11 deletions
|
|
@ -216,23 +216,31 @@ function isModEnabled($module)
|
|||
{
|
||||
global $conf;
|
||||
|
||||
// Fix special cases
|
||||
// Fix old names (map to new names)
|
||||
$arrayconv = array(
|
||||
'bank' => 'banque',
|
||||
'category' => 'categorie',
|
||||
'contract' => 'contrat',
|
||||
'project' => 'projet',
|
||||
'delivery_note' => 'expedition'
|
||||
'adherent' => 'member',
|
||||
'banque' => 'bank',
|
||||
'categorie' => 'category',
|
||||
'commande' => 'order',
|
||||
'contrat' => 'contract',
|
||||
'expedition' => 'delivery_note',
|
||||
'facture' => 'invoice',
|
||||
'projet' => 'project',
|
||||
'propale' => 'propal',
|
||||
);
|
||||
|
||||
if (!getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD')) {
|
||||
// Special cases: both use the same module.
|
||||
$arrayconv['supplier_order'] = 'fournisseur';
|
||||
$arrayconv['supplier_invoice'] = 'fournisseur';
|
||||
}
|
||||
|
||||
$module_alt = $module;
|
||||
if (!empty($arrayconv[$module])) {
|
||||
$module = $arrayconv[$module];
|
||||
$module_alt = $arrayconv[$module];
|
||||
}
|
||||
|
||||
return !empty($conf->modules[$module]);
|
||||
return !empty($conf->modules[$module]) || !empty($conf->modules[$module_alt]);
|
||||
//return !empty($conf->$module->enabled);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ function getFileData($jk, $fpos, $type, $mbox)
|
|||
**/
|
||||
function saveAttachment($path, $filename, $data)
|
||||
{
|
||||
global $lang;
|
||||
$tmp = explode('.', $filename);
|
||||
$ext = array_pop($tmp);
|
||||
$filename = implode('.', $tmp);
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ $hookmanager->initHooks(array('orderssuppliersindex'));
|
|||
* View
|
||||
*/
|
||||
|
||||
llxHeader('', $langs->trans("SuppliersOrdersArea"));
|
||||
llxHeader('', $langs->trans("SuppliersOrdersArea"), '', '', 0, 0, '', '', '', 'mod-supplier-order page-stats');
|
||||
|
||||
$commandestatic = new CommandeFournisseur($db);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ if (empty($reshook)) {
|
|||
|
||||
$title = $object->ref." - ".$langs->trans('Notes');
|
||||
$help_url = 'EN:Module_Suppliers_Orders|FR:CommandeFournisseur|ES:Módulo_Pedidos_a_proveedores';
|
||||
llxHeader('', $title, $help_url);
|
||||
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-supplier-order page-notes');
|
||||
|
||||
$form = new Form($db);
|
||||
|
|
|
|||
Loading…
Reference in a new issue