diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php index 2990fc7..67d9290 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/checkOutDocumentBL.php @@ -60,7 +60,7 @@ if (checkSession()) { } else { // document update failed - $oPatternCustom->setHtml("
An error occurred while storing this document in the database
\n"); + $oPatternCustom->setHtml(renderErrorPage("An error occurred while storing this document in the database")); } } else { // prompt the user for a checkout comment @@ -69,27 +69,24 @@ if (checkSession()) { } else { // this document is already checked out // TODO: for extra credit, tell the user who has this document checked out - $oPatternCustom->setHtml("This document is already checked out
\n"); + $oPatternCustom->setHtml(renderErrorPage("This document is already checked out")); } } else { // no permission to checkout the document - $oPatternCustom->setHtml("Could not check out this document
\n"); + $oPatternCustom->setHtml(renderErrorPage("You don't have permission to check out this document")); } } else { // couldn't instantiate the document - $oPatternCustom->setHtml("Could not check out this document
\n"); + $oPatternCustom->setHtml(renderErrorPage("Could not check out this document")); } } else { // no document id was set when coming to this page, - $oPatternCustom->setHtml("No document is currently selected for check out
\n"); + $oPatternCustom->setHtml(renderErrorPage("No document is currently selected for check out")); } require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); $main->setCentralPayload($oPatternCustom); $main->setFormAction($_SERVER["PHP_SELF"]); - if (isset($sErrorMessage)) { - $main->setErrorMessage($sErrorMessage); - } $main->render(); } ?>