@@ 417-423 (lines=7) @@ | ||
414 | foreach ($folders as & $folder) { |
|
415 | $selected = (substr($dir,0,-1)==$folder) ? ' selected="selected"' : ''; |
|
416 | $label = $folder_titles[$folder]; |
|
417 | if ($folder == $group_dir) { |
|
418 | $label = '/ ('.get_lang('HomeDirectory').')'; |
|
419 | } else { |
|
420 | $path_parts = explode('/', str_replace($group_dir, '', $folder)); |
|
421 | $label = cut($label, 80); |
|
422 | $label = str_repeat(' ', count($path_parts) - 2).' — '.$label; |
|
423 | } |
|
424 | $parent_select -> addOption($label, $folder); |
|
425 | if ($selected != '') { |
|
426 | $parent_select->setSelected($folder); |
@@ 5095-5101 (lines=7) @@ | ||
5092 | foreach ($folders as $folder_id => & $folder) { |
|
5093 | $selected = ($document_id == $folder_id) ? ' selected="selected"' : ''; |
|
5094 | $label = $folder_titles[$folder]; |
|
5095 | if ($folder == $group_dir) { |
|
5096 | $label = get_lang('Documents'); |
|
5097 | } else { |
|
5098 | $path_parts = explode('/', str_replace($group_dir, '', $folder)); |
|
5099 | $label = cut($label, 80); |
|
5100 | $label = str_repeat(' ', count($path_parts) - 2) . ' — ' . $label; |
|
5101 | } |
|
5102 | $parent_select->addOption($label, $folder_id); |
|
5103 | if ($selected != '') { |
|
5104 | $parent_select->setSelected($folder_id); |