Skip to content

Commit

Permalink
Remove unused parameter, remove unused renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Apr 10, 2017
1 parent 2c2279d commit 1e1c8a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions main/document/document.php
Expand Up @@ -1975,8 +1975,7 @@ function convertModal (id, format) {
$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())
);
}

Expand Down
5 changes: 0 additions & 5 deletions main/inc/lib/document.lib.php
Expand Up @@ -5200,11 +5200,6 @@ public static function build_directory_selector(
$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'), '/');
Expand Down

0 comments on commit 1e1c8a2

Please sign in to comment.