Changeset 3924 for branches/2.2/filemanager/inc/class.vfs_functions.inc.php
- Timestamp:
- 03/28/11 16:18:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/filemanager/inc/class.vfs_functions.inc.php
r3913 r3924 164 164 } 165 165 166 function setRestricted(){ 166 function setRestricted() 167 { 167 168 $GLOBALS['phpgw_info']['flags'] = array 168 169 ( 169 'currentapp' 170 'noheader' 171 'nonavbar' 172 'nofooter' 173 'noappheader' 170 'currentapp' => 'filemanager', 171 'noheader' => True, 172 'nonavbar' => True, 173 'nofooter' => True, 174 'noappheader' => True, 174 175 'enable_browser_class' => True 175 176 ); … … 432 433 { 433 434 $_return[] = array( "true" => lang('renamed %1 to %2', $this->file ,$this->to ) ); 435 436 // Get Type Mime Type 437 $mimeType = $this->bo->vfs->get_ext_mime_type(array ('string' => $this->to )); 438 439 $this->bo->vfs->set_attributes( array( 440 'string' => $this->to, 441 'relatives' => array(RELATIVE_ALL), 442 'attributes' => array('mime_type' => $mimeType) 443 )); 434 444 } 435 445 else 436 446 { 437 $_return[] = array( "error" => $this->file . " " . $this->to );447 $_return[] = array( "error" => $this->file . " " . $this->to ); 438 448 } 439 449 } 440 450 else 451 { 441 452 $_return[] = array("error" => "whitout file "); 453 } 442 454 443 455 echo serialize( $_return );
Note: See TracChangeset
for help on using the changeset viewer.