diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentUI.inc index 40e6cdf..9987ce9 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentUI.inc @@ -10,7 +10,7 @@ function getDocumentListForFolder($fFolderID) { global $default; - $sQuery = "SELECT D.id AS id, D.folder_id AS folder_id, D.name AS name, COALESCE(CONCAT('$default->graphicsUrl/', MT.icon_path), '$default->graphicsUrl/unknown.gif') AS image_url " . + $sQuery = "SELECT D.id AS id, D.folder_id AS folder_id, CONCAT(' ', D.name) AS name, COALESCE(CONCAT('$default->graphicsUrl/', MT.icon_path), '$default->graphicsUrl/unknown.gif') AS image_url " . "FROM $default->owl_documents_table AS D LEFT OUTER JOIN $default->owl_mime_table AS MT ON D.mime_id = MT.id " . "WHERE folder_id = $fFolderID " . "ORDER BY name ASC"; diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc index e83d236..6941a61 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc @@ -32,8 +32,7 @@ function displayDocumentLink($oDocument, $bDisplayFullPath = false) { return generateLink("$default->rootUrl/control.php", "action=viewDocument&fDocumentID=" . $oDocument->getID(), - $sIconPath . - $sLinkText); + $sIconPath . " " . $sLinkText); } /**