From 039bd5b4c85ffb5b047eed55c478dfa00d69753d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Wed, 18 Sep 2013 14:56:08 +0200 Subject: [PATCH] checkstyle --- htdocs/core/lib/files.lib.php | 2 +- htdocs/projet/tasks/document.php | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index 2296454dc73..b64f403b758 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -1072,7 +1072,7 @@ function dol_add_file_process($upload_dir, $allowoverwrite=0, $donotupdatesessio setEventMessage($langs->trans("ErrorFileNotLinked"), 'errors'); } } - } + } else { $langs->load("errors"); diff --git a/htdocs/projet/tasks/document.php b/htdocs/projet/tasks/document.php index c5702aa54c9..763136d3481 100644 --- a/htdocs/projet/tasks/document.php +++ b/htdocs/projet/tasks/document.php @@ -229,18 +229,10 @@ if ($object->id > 0) print '
'; - $modulepart = 'projet'; + $modulepart = 'projet'; $permission = $user->rights->projet->creer; $param = '&id=' . $object->id; include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; - /*// Affiche formulaire upload - $formfile=new FormFile($db); - $formfile->form_attach_new_file(DOL_URL_ROOT.'/projet/tasks/document.php?id='.$object->id.($withproject?'&withproject=1':''),'',0,0,$user->rights->projet->creer,50,$object); - - - // List of document - $param='&id='.$object->id; - $formfile->list_of_documents($filearray,$object,'projet',$param,0,dol_sanitizeFileName($projectstatic->ref).'/'.dol_sanitizeFileName($object->ref).'/');*/ } else {