diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php index 36efb483c94..7f41578058c 100644 --- a/htdocs/admin/commande.php +++ b/htdocs/admin/commande.php @@ -4,7 +4,7 @@ * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Andre Cianfarani - * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2008 Raphael Bertrand (Resultic) * Copyright (C) 2011-2012 Juanjo Menent * Copyright (C) 2011 Philippe Grand @@ -36,8 +36,7 @@ require_once(DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php'); $langs->load("admin"); $langs->load("errors"); -if (!$user->admin) -accessforbidden(); +if (! $user->admin) accessforbidden(); $action = GETPOST("action"); $value = GETPOST("value"); @@ -284,7 +283,7 @@ foreach ($conf->file->dol_document_root as $dirroot) print ''."\n"; print ''; - if ($conf->global->COMMANDE_ADDON == "$file") + if ($conf->global->COMMANDE_ADDON == $file) { print img_picto($langs->trans("Activated"),'switch_on'); } @@ -431,14 +430,14 @@ foreach ($conf->file->dol_document_root as $dirroot) } else { - print "\n"; + print ''."\n"; print 'scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("Disabled"),'switch_off').''; print ""; } // Defaut - print ""; - if ($conf->global->PROPALE_ADDON_PDF == "$name") + print ''; + if ($conf->global->COMMANDE_ADDON_PDF == $name) { print img_picto($langs->trans("Default"),'on'); } @@ -579,7 +578,7 @@ print '
'; dol_htmloutput_mesg($mesg); -$db->close(); - llxFooter(); + +$db->close(); ?>