From abcae52c19061bc8fbc94e9373231d273209a3c5 Mon Sep 17 00:00:00 2001 From: nbm Date: Wed, 16 Nov 2005 21:31:52 +0000 Subject: [PATCH] Remove unused function, and start using Id instead of ID --- presentation/lookAndFeel/knowledgeTree/documentmanagement/documentWorkflow.php | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentWorkflow.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentWorkflow.php index 557e756..ec14aa0 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentWorkflow.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentWorkflow.php @@ -16,33 +16,12 @@ require_once(KT_LIB_DIR . "/validation/dispatchervalidation.inc.php"); require_once(KT_LIB_DIR . '/workflow/workflow.inc.php'); require_once(KT_LIB_DIR . '/workflow/workflowutil.inc.php'); -function displayFolderPathLink($aPathArray, $aPathNameArray, $sLinkPage = "") { - global $default; - if (strlen($sLinkPage) == 0) { - $sLinkPage = $_SERVER["PHP_SELF"]; - } - $default->log->debug("displayFolderPathLink: slinkPage=$sLinkPage"); - // display a separate link to each folder in the path - for ($i=0; $i 0) ? $sPathLinks . " > " . $sLink : $sLink; - } - return $sPathLinks; -} - - class DocumentWorkflowDispatcher extends KTStandardDispatcher { var $bAutomaticTransaction = true; function do_main() { $oTemplate =& $this->oValidator->validateTemplate("ktcore/workflow/documentWorkflow"); - $oDocument =& $this->oValidator->validateDocument($_REQUEST['fDocumentID']); + $oDocument =& $this->oValidator->validateDocument($_REQUEST['fDocumentId']); $oWorkflow = KTWorkflowUtil::getWorkflowForDocument($oDocument); $oWorkflowState = KTWorkflowUtil::getWorkflowStateForDocument($oDocument); @@ -66,7 +45,7 @@ class DocumentWorkflowDispatcher extends KTStandardDispatcher { $oWorkflow =& $this->oValidator->validateWorkflow($_REQUEST['fWorkflowId']); $res = KTWorkflowUtil::startWorkflowOnDocument($oWorkflow, $oDocument); $this->successRedirectToMain('Workflow started', - array('fDocumentID' => $oDocument->getID())); + array('fDocumentId' => $oDocument->getId())); exit(0); } @@ -77,7 +56,7 @@ class DocumentWorkflowDispatcher extends KTStandardDispatcher { $oUser =& User::get($_SESSION['userID']); $res = KTWorkflowUtil::performTransitionOnDocument($oTransition, $oDocument, $oUser, $sComments); $this->successRedirectToMain('Transition performed', - array('fDocumentID' => $oDocument->getID())); + array('fDocumentId' => $oDocument->getId())); } } -- libgit2 0.21.4