Skip to content

Commit

Permalink
Remove useless line that show "root" in EDM module.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 23, 2017
1 parent 49d0dee commit 0ada82b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 35 deletions.
36 changes: 4 additions & 32 deletions htdocs/ecm/index.php
Expand Up @@ -115,36 +115,6 @@
{
$result=$ecmdir->changeNbOfFiles('+');
}
/*
if (dol_mkdir($upload_dir) >= 0)
{
$resupload = dol_move_uploaded_file($_FILES['userfile']['tmp_name'], $upload_dir . "/" . dol_unescapefile($_FILES['userfile']['name']),0, 0, $_FILES['userfile']['error']);
if (is_numeric($resupload) && $resupload > 0)
{
$result=$ecmdir->changeNbOfFiles('+');
}
else
{
$langs->load("errors");
if ($resupload < 0) // Unknown error
{
setEventMessages($langs->trans("ErrorFileNotUploaded"), null, 'errors');
}
else if (preg_match('/ErrorFileIsInfectedWithAVirus/',$resupload)) // Files infected by a virus
{
setEventMessages($langs->trans("ErrorFileIsInfectedWithAVirus"), null, 'errors');
}
else // Known error
{
setEventMessages($langs->trans($resupload), null, 'errors');
}
}
}
else
{
$langs->load("errors");
setEventMessages($langs->trans("ErrorFailToCreateDir",$upload_dir), null, 'errors');
}*/
}
}

Expand Down Expand Up @@ -462,6 +432,7 @@


// Root of manual section
/*
print '<tr class="ecmroot">';
print '<td class="ecmroot">';
print img_picto_common('','treemenu/base.gif','class="inline-block valignmiddle"');
Expand All @@ -474,10 +445,11 @@
print '<td class="ecmroot">&nbsp;</td>';
print '<td class="ecmroot"></td>';
print '</tr>';

*/

if (! empty($conf->use_javascript_ajax) && empty($conf->global->MAIN_ECM_DISABLE_JS))
{
print '<tr><td colspan="6" style="padding-left: 20px">';
print '<tr><td colspan="6">';

// Show filemanager tree
print '<div id="filetree" class="ecmfiletree"></div>';
Expand Down
7 changes: 4 additions & 3 deletions htdocs/ecm/index_auto.php
Expand Up @@ -449,7 +449,7 @@
$htmltooltip=$langs->trans("ECMAreaDesc2");

// Root title line (Automatic section)
print '<tr class="ecmroot">';
/*print '<tr class="ecmroot">';
print '<td class="ecmroot">';
print img_picto_common('','treemenu/base.gif','class="inline-block valignmiddle"');
$txt=$langs->trans("ECMRoot").' ('.$langs->trans("ECMSectionsAuto").')';
Expand All @@ -461,11 +461,12 @@
print '<td class="ecmroot">&nbsp;</td>';
print '<td class="ecmroot"></td>';
print '</tr>';

*/

$sectionauto=dol_sort_array($sectionauto,'label','ASC',true,false);

print '<tr>';
print '<td colspan="6" style="padding-left: 20px">';
print '<td colspan="6">';
print '<div id="filetreeauto" class="ecmfiletree"><ul class="ecmjqft">';

$nbofentries=0;
Expand Down

0 comments on commit 0ada82b

Please sign in to comment.