diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc index f5730b4..e804363 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc @@ -74,7 +74,7 @@ function renderCategoryResults($aResults) { } else { // else the first entry is the category name, so display the documents in the category // with full paths - $sToRender .= renderDocumentList($aResults["documents"], true); + $sToRender .= renderDocumentList($aResults["documents"], "This category contains no documents", true); } return $sToRender; } @@ -120,7 +120,7 @@ function renderDocumentTypeResults($aResults) { } else { // else the first entry is the document type name, so display the documents in the document type // with full paths - $sToRender .= renderDocumentList($aResults["documents"], true); + $sToRender .= renderDocumentList($aResults["documents"], "This document type contains no documents", true); } return $sToRender; } @@ -140,19 +140,19 @@ function renderFolderResults($aResults) { } $sToRender .= " "; - $sToRender .= "" . renderDocumentList($aResults["documents"]) . "\n"; + $sToRender .= "" . renderDocumentList($aResults["documents"], "This folder contains no documents") . "\n"; return $sToRender; } -function renderDocumentList($aDocuments, $bDisplayFullPath = false) { +function renderDocumentList($aDocuments, $sNoDocumentsMessage, $bDisplayFullPath = false) { // loop through the files and display links if (count($aDocuments) > 0) { for ($i=0; $i" . displayDocumentLink($aDocuments[$i], $bDisplayFullPath) . ""; } } else { - $sToRender .= "This folder contains no documents"; + $sToRender .= "$sNoDocumentsMessage"; } return $sToRender; }