diff --git a/lib/documentmanagement/Document.inc b/lib/documentmanagement/Document.inc index d3bd591..dcc63e5 100644 --- a/lib/documentmanagement/Document.inc +++ b/lib/documentmanagement/Document.inc @@ -733,8 +733,9 @@ class Document { */ function getDisplayPath($bDisplayIcon = false) { $sFolderPath = Folder::getFolderDisplayPath($this->iFolderID); + // #3425 for consistency return ($bDisplayIcon ? $this->getIcon() : "") . - ($sFolderPath == "" ? "Deleted Folder" : $sFolderPath) . " > " . $this->sName; + ($sFolderPath == "" ? "Deleted Folder" : $sFolderPath) . " > " . $this->sFileName; } /** diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc index a592227..645d616 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc @@ -35,7 +35,8 @@ function displayDocumentPath($iDocumentID) { $oDocument = Document::get($iDocumentID); if ($oDocument) { $iFolderID = $oDocument->getFolderID(); - $sDocumentName = $oDocument->getName(); + // #3425 for consistency + $sDocumentName = $oDocument->getFileName(); $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); $sDocumentPath = displayFolderPathLink(Folder::getFolderPathAsArray($iFolderID), Folder::getFolderPathNamesAsArray($iFolderID), "$default->rootUrl/control.php?action=browse") . " > " . $sDocumentName; diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc index 2d71665..298bcc5 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc @@ -34,11 +34,11 @@ function renderDocumentPath($oDocument, $bDisplayActions = false) { $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); $sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td"); - $sDocumentPath = displayFolderPathLink(Folder::getFolderPathAsArray($oDocument->getFolderID()), Folder::getFolderPathNamesAsArray($oDocument->getFolderID()), "$default->rootUrl/control.php?action=browse") . " > "; + $sDocumentPath = displayFolderPathLink(Folder::getFolderPathAsArray($oDocument->getFolderID()), Folder::getFolderPathNamesAsArray($oDocument->getFolderID()), "$default->rootUrl/control.php?action=browse") . " > "; + // #3425 for consistency + $sDocumentPath .= $oDocument->getFileName(); if ($bDisplayActions) { - $sDocumentPath .= "" . $oDocument->getName() . ""; - } else { - $sDocumentPath .= $oDocument->getName(); + $sDocumentPath = "" . $sDocumentPath . ""; } return "" . ($bDisplayActions ? "" : "") . "
$sDocumentPathActions
\n"; } @@ -539,7 +539,10 @@ function displayPublishButton($oDocument, $bEdit) { } return "" . displayButton("viewDocument", "fDocumentID=" . $oDocument->getID() . "&fForPublish=1", "publish", $sDisabledText) . "\n"; } - + +/** + * Displays document action buttons + */ function displayActionButtons($oDocument, $bEdit) { $sToRender .= displayViewButton($oDocument, $bEdit); $sToRender .= displayEmailButton($oDocument);