Commit 33ae892ba0f0031f3baf027f9e516b7dfb2972a6
1 parent
8a1d0419
corrected grammar for no documents|folders
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2773 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
| @@ -317,8 +317,8 @@ function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessa | @@ -317,8 +317,8 @@ function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessa | ||
| 317 | function appendCounts($aFolderPath, $iFolderCount, $iDocumentCount) { | 317 | function appendCounts($aFolderPath, $iFolderCount, $iDocumentCount) { |
| 318 | // append to the last path component and return | 318 | // append to the last path component and return |
| 319 | $aFolderPath[count($aFolderPath)-1] = $aFolderPath[count($aFolderPath)-1] . | 319 | $aFolderPath[count($aFolderPath)-1] = $aFolderPath[count($aFolderPath)-1] . |
| 320 | - " ($iFolderCount folder" . ($iFolderCount > 1 ? "s" : "") . | ||
| 321 | - ", $iDocumentCount document" . ($iDocumentCount > 1 ? "s" : "") . ")"; | 320 | + " ($iFolderCount folder" . (($iFolderCount > 1) || ($iFolderCount == 0) ? "s" : "") . |
| 321 | + ", $iDocumentCount document" . (($iDocumentCount > 1) || ($iDocumentCount == 0) ? "s" : "") . ")"; | ||
| 322 | return $aFolderPath; | 322 | return $aFolderPath; |
| 323 | } | 323 | } |
| 324 | 324 |