浏览代码

Use isModEnabled

Alexandre SPANGARO 2 年之前
父节点
当前提交
e6fb17c909
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/compta/index.php

+ 1 - 1
htdocs/compta/index.php

@@ -50,7 +50,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
 
 // Load translation files required by the page
 $langs->loadLangs(array('compta', 'bills'));
-if (!empty($conf->commande->enabled)) {
+if (isModEnabled('commande')) {
 	$langs->load("orders");
 }