Qual: Clean code to reduce nb of properties into classes

This commit is contained in:
Laurent Destailleur
2011-12-03 20:21:45 +01:00
parent e0ffbc50b6
commit 7bb2af86cd
8 changed files with 43 additions and 59 deletions

View File

@@ -41,7 +41,7 @@ function fichinter_prepare_head($object)
$head[$h][2] = 'contact';
$h++;
if ($conf->use_preview_tabs)
if (! empty($conf->global->MAIN_USE_PREVIEW_TABS))
{
$head[$h][0] = DOL_URL_ROOT.'/fichinter/apercu.php?id='.$object->id;
$head[$h][1] = $langs->trans('Preview');