From 8afc8d3464ee496961c87358d9532f30ae392b52 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 1 Jul 2003 10:34:20 +0000 Subject: [PATCH] updated comments and logging --- presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php index f5f0616..52900b8 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentBL.php @@ -89,6 +89,7 @@ if (checkSession()) { "folderName" => Folder::getFolderName($fFolderID))); $default->log->info("addDocumentBL.php fired $count subscription alerts for new document " . $oDocument->getName()); + // TODO: further meta-data processing //redirect to the document view page redirect("$default->rootUrl/control.php?action=modifyDocument&fDocumentID=" . $oDocument->getID(). "&fFirstEdit=1"); } else { @@ -101,7 +102,7 @@ if (checkSession()) { $main->setFormAction($_SERVER["PHP_SELF"] . "?fFolderID=$fFolderID&fForStore=1" . (isset($fDependantDocumentID) ? "&fDependantDocumentID=$fDependantDocumentID" : "")); $main->setFormEncType("multipart/form-data"); $main->setErrorMessage("An error occured while storing the document on the file system"); - $default->log->error("addDocumentBL.php Filesystem error attempting to store document " . $oDocument->getFileName() . " in folder " . Folder::getFolderPath($fFolderID) . " id=$fFolderID"); + $default->log->error("addDocumentBL.php Filesystem error attempting to store document " . $oDocument->getFileName() . " in folder " . Folder::getFolderPath($fFolderID) . "; id=$fFolderID"); $main->render(); } } else { -- libgit2 0.21.4