Minor - flint fixes

pull/3252/head
Julio Montoya 6 years ago
parent 902a47ab0b
commit 81c71006fc
  1. 4
      main/document/document.php

@ -850,11 +850,14 @@ if ($is_certificate_mode) {
// Interbreadcrumb for the current directory root path
if (empty($document_data['parents'])) {
if (isset($_GET['createdir'])) {
if ($document_data) {
$interbreadcrumb[] = [
'url' => $document_data['document_url'],
'name' => $document_data['title'],
];
}
} else {
if ($document_data) {
// Hack in order to not add the document to the breadcrumb in case it is a link
if ($document_data['filetype'] != 'link') {
$interbreadcrumb[] = [
@ -863,6 +866,7 @@ if (empty($document_data['parents'])) {
];
}
}
}
} else {
$counter = 0;
foreach ($document_data['parents'] as $document_sub_data) {

Loading…
Cancel
Save