Fix: Missing tests

This commit is contained in:
Laurent Destailleur 2010-11-11 12:21:15 +00:00
parent 0d14009f4b
commit 1ffda88421

View File

@ -20,12 +20,13 @@
/**
* \file htdocs/lib/project.lib.php
* \brief Ensemble de fonctions de base pour le module projet
* \ingroup societe
* \brief Functions used by project module
* \ingroup project
* \version $Id$
*/
require_once(DOL_DOCUMENT_ROOT."/projet/class/project.class.php");
function project_prepare_head($object)
{
global $langs, $conf, $user;
@ -37,7 +38,13 @@ function project_prepare_head($object)
$head[$h][2] = 'project';
$h++;
if ($conf->propal->enabled || $conf->commande->enabled || $conf->facture->enabled)
$head[$h][0] = DOL_URL_ROOT.'/projet/contact.php?id='.$object->id;
$head[$h][1] = $langs->trans("ProjectContact");
$head[$h][2] = 'contact';
$h++;
if ($conf->fournisseur->enabled || $conf->propal->enabled || $conf->commande->enabled || $conf->facture->enabled || $conf->contrat->enabled
|| $conf->ficheinter->enabled || $conf->agenda->enabled || $conf->deplacement->enabled)
{
$head[$h][0] = DOL_URL_ROOT.'/projet/element.php?id='.$object->id;
$head[$h][1] = $langs->trans("Referers");
@ -45,11 +52,6 @@ function project_prepare_head($object)
$h++;
}
$head[$h][0] = DOL_URL_ROOT.'/projet/contact.php?id='.$object->id;
$head[$h][1] = $langs->trans("ProjectContact");
$head[$h][2] = 'contact';
$h++;
$head[$h][0] = DOL_URL_ROOT.'/projet/document.php?id='.$object->id;
/*$filesdir = $conf->projet->dir_output . "/" . dol_sanitizeFileName($object->ref);
include_once(DOL_DOCUMENT_ROOT.'/lib/files.lib.php');