From fec1540872054be1ef6151c677386bde79477f04 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 23 May 2005 16:46:17 +0000 Subject: [PATCH] Fixed: Plantage "Fatal error: Cannot redeclare class commande.class.php" --- htdocs/commande/pre.inc.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/commande/pre.inc.php b/htdocs/commande/pre.inc.php index 2d36bd32909..dc7e1189eff 100644 --- a/htdocs/commande/pre.inc.php +++ b/htdocs/commande/pre.inc.php @@ -22,16 +22,18 @@ */ /** - \file htdocs/commande/pre.inc.php - \ingroup commandes - \brief Gestionnaire du menu commandes - \version $Revision$ + \file htdocs/commande/pre.inc.php + \ingroup commandes + \brief Gestionnaire du menu commandes + \version $Revision$ */ require("../main.inc.php"); -require("./commande.class.php"); +require_once DOL_DOCUMENT_ROOT."/commande/commande.class.php"; + $langs->load("orders"); + function llxHeader($head = "", $title="", $help_url='') { global $user, $conf, $langs;