Realizar script de auto-redimensionamiento de los cursos refs BT#7424

1.9.x
César Perales 11 years ago
parent 41e4d24ca3
commit 2ba74d14d8
  1. 6
      main/document/document.php

@ -1127,7 +1127,7 @@ if (isset($docs_and_folders) && is_array($docs_and_folders)) {
) { ) {
// Create a sortable table with our data // Create a sortable table with our data
$sortable_data = array(); $sortable_data = array();
$countedPaths = array();
$count = 1; $count = 1;
foreach ($docs_and_folders as $key => $document_data) { foreach ($docs_and_folders as $key => $document_data) {
$row = array(); $row = array();
@ -1215,6 +1215,10 @@ if (isset($docs_and_folders) && is_array($docs_and_folders)) {
$row[] = $document_name; $row[] = $document_name;
$total_size = $total_size + $size; $total_size = $total_size + $size;
if (!isset($countedPaths[$document_data['path']])) {
$total_size = $total_size + $size;
$countedPaths[$document_data['path']] = true;
}
if ((isset($_GET['keyword']) && search_keyword($document_name, $_GET['keyword'])) || !isset($_GET['keyword']) || empty($_GET['keyword'])) { if ((isset($_GET['keyword']) && search_keyword($document_name, $_GET['keyword'])) || !isset($_GET['keyword']) || empty($_GET['keyword'])) {
$sortable_data[] = $row; $sortable_data[] = $row;

Loading…
Cancel
Save