From b4ea1a922d9f32e7578dbb12e13137287953b98e Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 8 Mar 2013 17:55:14 +0100 Subject: [PATCH] pass current document to pageNavigation() pageNavigation() still uses a global variable $document which is replaced by a parameter passed to the function. All calls of pageNavigation() needs a third parameter with the document. --- views/bootstrap/class.AddFile.php | 2 +- views/bootstrap/class.ApproveDocument.php | 2 +- views/bootstrap/class.Bootstrap.php | 6 ++---- views/bootstrap/class.DocumentAccess.php | 2 +- views/bootstrap/class.DocumentNotify.php | 2 +- views/bootstrap/class.DocumentVersionDetail.php | 2 +- views/bootstrap/class.EditAttributes.php | 2 +- views/bootstrap/class.EditComment.php | 2 +- views/bootstrap/class.EditDocument.php | 2 +- views/bootstrap/class.MoveDocument.php | 2 +- views/bootstrap/class.OverrideContentStatus.php | 2 +- views/bootstrap/class.RemoveDocument.php | 2 +- views/bootstrap/class.RemoveDocumentFile.php | 2 +- views/bootstrap/class.RemoveVersion.php | 2 +- views/bootstrap/class.RemoveWorkflowFromDocument.php | 2 +- views/bootstrap/class.ReturnFromSubWorkflow.php | 2 +- views/bootstrap/class.ReviewDocument.php | 2 +- views/bootstrap/class.RewindWorkflow.php | 2 +- views/bootstrap/class.RunSubWorkflow.php | 2 +- views/bootstrap/class.SetExpires.php | 2 +- views/bootstrap/class.SetReviewersApprovers.php | 2 +- views/bootstrap/class.SetWorkflow.php | 2 +- views/bootstrap/class.TriggerWorkflow.php | 2 +- views/bootstrap/class.UpdateDocument.php | 2 +- views/bootstrap/class.ViewDocument.php | 2 +- 25 files changed, 26 insertions(+), 28 deletions(-) diff --git a/views/bootstrap/class.AddFile.php b/views/bootstrap/class.AddFile.php index b8def5026..018d38369 100644 --- a/views/bootstrap/class.AddFile.php +++ b/views/bootstrap/class.AddFile.php @@ -42,7 +42,7 @@ class SeedDMS_View_AddFile extends SeedDMS_Bootstrap_Style { $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); $this->globalNavigation($folder); $this->contentStart(); - $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document"); + $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document); ?>