mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
use isModEnabled
This commit is contained in:
@@ -3710,7 +3710,7 @@ class Commande extends CommonOrder
|
||||
|
||||
$result = '';
|
||||
|
||||
if (!empty($conf->expedition->enabled) && ($option == '1' || $option == '2')) {
|
||||
if (isModEnabled("expedition") && ($option == '1' || $option == '2')) {
|
||||
$url = DOL_URL_ROOT.'/expedition/shipment.php?id='.$this->id;
|
||||
} else {
|
||||
$url = DOL_URL_ROOT.'/commande/card.php?id='.$this->id;
|
||||
|
||||
Reference in New Issue
Block a user