Changeset 8018 for trunk/wp-admin/includes/class-wp-filesystem-direct.php
- Timestamp:
- 05/30/2008 04:14:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-direct.php
r8009 r8018 5 5 var $errors = array(); 6 6 function WP_Filesystem_Direct($arg) { 7 $this->method = 'direct'; 7 8 $this->errors = new WP_Error(); 8 9 $this->permission = umask(); … … 20 21 return @file($file); 21 22 } 22 function put_contents($file, $contents,$mode=false,$type='') {23 if ( ! ($fp = @fopen($file, 'w' . $type)) )24 return false; 25 @fwrite($fp, $contents);23 function put_contents($file, $contents, $mode = false, $type = '') { 24 if ( ! ($fp = @fopen($file, 'w' . $type)) ) 25 return false; 26 @fwrite($fp, $contents); 26 27 @fclose($fp); 27 28 $this->chmod($file,$mode); … … 34 35 return @chdir($dir); 35 36 } 36 function chgrp($file, $group,$recursive=false) {37 function chgrp($file, $group, $recursive = false) { 37 38 if( ! $this->exists($file) ) 38 39 return false; … … 49 50 return true; 50 51 } 51 function chmod($file, $mode=false,$recursive=false) {52 function chmod($file, $mode = false, $recursive = false) { 52 53 if( ! $mode ) 53 54 $mode = $this->permission;
Note: See TracChangeset
for help on using the changeset viewer.