Changeset 1732
- Timestamp:
- 12/02/09 10:03:43 (14 years ago)
- Location:
- sandbox/filemanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1731 r1732 125 125 'messages' => array('messages' => ''), 126 126 'show_upload_boxes' => array('show_upload_boxes' => ''), 127 'from' => array('from' => ''), 127 128 'to' => array('to' => '') 128 129 … … 786 787 { 787 788 if($this->bo->vfs->mv(array( 788 'from' => $ file,789 'from' => $this->from . '/' . $file, 789 790 'to' => $this->to . '/' . $file, 790 'relatives' => array(RELATIVE_ ALL, RELATIVE_NONE)791 'relatives' => array(RELATIVE_NONE, RELATIVE_NONE) 791 792 ))) 792 793 { 793 794 $moved++; 794 $this->messages[]=lang('Moved %1 to %2', $this-> disppath.'/'.$file, $this->to.'/'.$file);795 $this->messages[]=lang('Moved %1 to %2', $this->from . '/' . $file, $this->to . '/' . $file); 795 796 } 796 797 else … … 824 825 { 825 826 if($this->bo->vfs->cp(array( 826 'from' => $ file,827 'from' => $this->from . '/' . $file, 827 828 'to' => $this->to . '/' . $file, 828 'relatives' => array(RELATIVE_ ALL, RELATIVE_NONE)829 'relatives' => array(RELATIVE_NONE, RELATIVE_NONE) 829 830 ))) 830 831 { … … 834 835 else 835 836 { 836 $this->messages[] = lang('Error:').lang('Could not copy %1 to %2', $this->disppath.'/'.$file, $this->to.'/'.$file);837 $this->messages[] = lang('Error:').lang('Could not copy %1 to %2',$this->from . '/' . $file , $this->to.'/'.$file); 837 838 } 838 839 } -
sandbox/filemanager/js/draw_api.js
r1730 r1732 261 261 newpage += fl.td+sp_hd+'comm\')" id="comm">'+get_lang('comment')+'</a>'+sp_tl; 262 262 if (preferences.version =='1') newpage += fl.td+sp_hd+'vers\')" id="vers">'+get_lang('version')+'</a>'+sp_tl+'</tr>'; 263 263 if (files != null) 264 264 for (var i=0; i < files.length; i++) 265 265 { … … 312 312 if (preferences.version =='1') newpage += fl.td+'<span onclick="loadHistory(\''+files[i].name+'\')">'+files[i].vers+'</span></td></tr>'; 313 313 } 314 else 315 newpage = "<b>"+get_lang('no files in this directory.')+"</b>"; 314 316 fl.element.innerHTML = newpage; 315 317 header = document.getElementsByName('head'); … … 476 478 elements[i]['url'] = address[0]+ 477 479 "&"+escape(arg)+".x=10"+ 480 "&from="+base64_encode(currentPath)+ 478 481 "&to="+base64_encode(inputEl.childNodes[i].innerHTML)+ 479 482 filesUrl;
Note: See TracChangeset
for help on using the changeset viewer.