@@ 5086-5092 (lines=7) @@ | ||
5083 | foreach ($folders as $folder_id => & $folder) { |
|
5084 | $selected = ($document_id == $folder_id) ? ' selected="selected"' : ''; |
|
5085 | $label = $folder_titles[$folder]; |
|
5086 | if ($folder == $group_dir) { |
|
5087 | $label = get_lang('Documents'); |
|
5088 | } else { |
|
5089 | $path_parts = explode('/', str_replace($group_dir, '', $folder)); |
|
5090 | $label = cut($label, 80); |
|
5091 | $label = str_repeat(' ', count($path_parts) - 2) . ' — ' . $label; |
|
5092 | } |
|
5093 | $parent_select->addOption($label, $folder_id); |
|
5094 | if ($selected != '') { |
|
5095 | $parent_select->setSelected($folder_id); |
@@ 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); |