diff --git a/plugins/search2/reporting/PendingDocuments.php b/plugins/search2/reporting/PendingDocuments.php index 8b759c7..253eae2 100644 --- a/plugins/search2/reporting/PendingDocuments.php +++ b/plugins/search2/reporting/PendingDocuments.php @@ -68,14 +68,17 @@ class PendingDocumentsDispatcher extends KTAdminDispatcher $aPendingDocs[$key] = $doc; } - $oTemplating =& KTTemplating::getSingleton(); + $oTemplating =& KTTempating::getSingleton(); $oTemplating->addLocation('Pending Documents', '/plugins/search2/reporting/templates'); $oTemplate =& $oTemplating->loadTemplate('pendingdocuments'); + $config = KTConfig::getSingleton(); + $rootUrl = $config->get('KnowledgeTree/rootUrl'); + $oTemplate->setData(array( 'context' => $this, - 'pending_docs' => $aPendingDocs - + 'pending_docs' => $aPendingDocs, + 'root_url' => $rootUrl )); return $oTemplate; } diff --git a/plugins/search2/reporting/templates/pendingdocuments.smarty b/plugins/search2/reporting/templates/pendingdocuments.smarty index e063fcb..44d69db 100644 --- a/plugins/search2/reporting/templates/pendingdocuments.smarty +++ b/plugins/search2/reporting/templates/pendingdocuments.smarty @@ -25,7 +25,7 @@ {foreach key=key from=$pending_docs item=pendingDocs} - {$pendingDocs.filename|truncate:40:'...'} + {$pendingDocs.filename|truncate:40:'...'} {if $pendingDocs.extractor}{$pendingDocs.extractor}{else}

{i18n}n/a{/i18n}

{/if} {$pendingDocs.indexdate} @@ -35,4 +35,4 @@ -{/if} \ No newline at end of file +{/if}