From 83562d627d65749e9f653c0eedbed51097e37ee7 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 10 Nov 2003 10:28:14 +0000 Subject: [PATCH] corrected grammar for no documents|folders --- presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc index bbeb847..95c0878 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc @@ -317,8 +317,8 @@ function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessa function appendCounts($aFolderPath, $iFolderCount, $iDocumentCount) { // append to the last path component and return $aFolderPath[count($aFolderPath)-1] = $aFolderPath[count($aFolderPath)-1] . - " ($iFolderCount folder" . ($iFolderCount > 1 ? "s" : "") . - ", $iDocumentCount document" . ($iDocumentCount > 1 ? "s" : "") . ")"; + " ($iFolderCount folder" . (($iFolderCount > 1) || ($iFolderCount == 0) ? "s" : "") . + ", $iDocumentCount document" . (($iDocumentCount > 1) || ($iDocumentCount == 0) ? "s" : "") . ")"; return $aFolderPath; } -- libgit2 0.21.4