From a0f736a6073cbdd1a37cc93e9c0454cb0ae672b5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 20 Jun 2011 05:35:11 +0000 Subject: [PATCH] Fix: uniformize code --- htdocs/core/class/html.formfile.class.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 2238564cea8..959080b1379 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -385,7 +385,6 @@ class FormFile $out.= ''; $out.= ''; - //$out.= load_fiche_titre($langs->trans("Documents"),'',''); $out.= '
'.$langs->trans("Documents").'
'; $out.= ''; @@ -435,12 +434,12 @@ class FormFile $out.= 'load("errors"); - print ' '.img_warning($langs->trans("WarningNoDocumentModelActivated")); + $out.= ' '.img_warning($langs->trans("WarningNoDocumentModelActivated")); } $out.= ''; @@ -452,7 +451,7 @@ class FormFile { foreach($hooks as $module) { - if (method_exists($module,'formBuilddocOptions')) $module->formBuilddocOptions(); + if (method_exists($module,'formBuilddocOptions')) $out.= $module->formBuilddocOptions(); } } } @@ -473,7 +472,7 @@ class FormFile $headershown=1; $titletoshow=$langs->trans("Documents"); if (! empty($title)) $titletoshow=$title; - print_titre($titletoshow); + $out.= '
'.$titletoshow.'
'; $out.= '
'; }