Remove unused parameter, remove unused renderer.

pull/2487/head
jmontoyaa 9 years ago
parent 2c2279d923
commit 1e1c8a2849
  1. 3
      main/document/document.php
  2. 5
      main/inc/lib/document.lib.php

@ -1975,8 +1975,7 @@ if (!$is_certificate_mode && !isset($_GET['move'])) {
$selector = DocumentManager::build_directory_selector(
$folders,
$document_id,
(isset($group_properties['directory']) ? $group_properties['directory'] : array()),
true
(isset($group_properties['directory']) ? $group_properties['directory'] : array())
);
}

@ -5200,11 +5200,6 @@ class DocumentManager
$attributes
);
if ($change_renderer) {
$renderer = $form->defaultRenderer();
$renderer->setElementTemplate('<span>{label} : {element}</span> ', 'curdirpath');
}
// Group documents cannot be uploaded in the root
if (empty($group_dir)) {
$parent_select->addOption(get_lang('Documents'), '/');

Loading…
Cancel
Save