Added project name to project_files.php page title.
[timetracker.git] / project_files.php
index 6abd0af..d8ef988 100644 (file)
@@ -78,8 +78,7 @@ if ($request->isPost()) {
     if ($fileHelper->putFile($fields)) {
       header('Location: project_files.php?id='.$cl_project_id);
       exit();
-    } else
-      $err->add($i18n->get('error.file_storage'));
+    }
   }
 } // isPost
 
@@ -87,5 +86,11 @@ $smarty->assign('can_manage', $user->can('manage_projects'));
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('files', $files);
 $smarty->assign('title', $i18n->get('title.project_files'));
+
+
+$smarty->assign('title', $i18n->get('title.project_files').': '.$project['name']);
+
+
+
 $smarty->assign('content_page_name', 'project_files.tpl');
 $smarty->display('index.tpl');