From d8facb3f17b9016650dea1e691d91812b72aacee Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Fri, 20 Jun 2003 15:20:55 +0000 Subject: [PATCH] controllerRedirect and show edit folder section integration and typos --- presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsBL.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsBL.php b/presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsBL.php index ad3a693..e256f83 100644 --- a/presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsBL.php +++ b/presentation/lookAndFeel/knowledgeTree/foldermanagement/viewDependantDocumentsBL.php @@ -47,10 +47,10 @@ if (checkSession()) { $oPatternCustom->setHtml(getViewPage($fFolderCollaborationID, $fFolderID)); $main->setCentralPayload($oPatternCustom); $main->setFormAction($_SERVER["PHP_SELF"] . "?fFolderID=$fFolderID&fFolderCollaborationID=$fFolderCollaborationID&fForAdd=1"); - $main->setErrorMessage("An error occured attempting to store the depedant document"); + $main->setErrorMessage("An error occured attempting to store the dependant document"); $main->render(); } else { - redirect("$default->rootUrl/control.php?action=viewDependantDocument&fFolderID=$fFolderID&fFolderCollaborationID=$fFolderCollaborationID"); + controllerRedirect("viewDependantDocument", "fFolderID=$fFolderID&fFolderCollaborationID=$fFolderCollaborationID"); } } else if (isset($fForAdd)) { //we are adding a new dependant document @@ -62,7 +62,7 @@ if (checkSession()) { $oPatternCustom->setHtml(getViewPage($fFolderCollaborationID, $fFolderID)); $main->setCentralPayload($oPatternCustom); $main->setFormAction($_SERVER["PHP_SELF"] . "?fFolderID=$fFolderID&fFolderCollaborationID=$fFolderCollaborationID&fForAdd=1"); - $main->setErrorMessage("You cannot add a new depedant document as there is currently a document in this folder undergoing collaboration"); + $main->setErrorMessage("You cannot add a new dependant document as there is currently a document in this folder undergoing collaboration"); $main->render(); } else { @@ -85,7 +85,7 @@ if (checkSession()) { $oPatternCustom->setHtml(getViewPage($fFolderCollaborationID, $fFolderID)); $main->setCentralPayload($oPatternCustom); $main->setFormAction($_SERVER["PHP_SELF"] . "?fFolderID=$fFolderID&fFolderCollaborationID=$fFolderCollaborationID&fForUpdate=1"); - $main->setErrorMessage("You cannot add a new depedant document as there is currently a document in this folder undergoing collaboration"); + $main->setErrorMessage("You cannot add a new dependant document as there is currently a document in this folder undergoing collaboration"); $main->render(); } else { @@ -127,8 +127,5 @@ if (checkSession()) { redirect($default->root_url . "/control.php"); } } - - } - ?> \ No newline at end of file -- libgit2 0.21.4