Changeset 27566
- Timestamp:
- 03/17/2014 08:16:40 PM (11 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-direct.php
r26869 r27566 195 195 * 196 196 * @param string $file Path to the file. 197 * @return string Mode of the file (last 4digits).197 * @return string Mode of the file (last 3 digits). 198 198 */ 199 199 function getchmod($file) { 200 return substr( decoct(@fileperms($file)),3);200 return substr( decoct( @fileperms( $file ) ), -3 ); 201 201 } 202 202 -
trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php
r25560 r27566 231 231 232 232 function getchmod($file) { 233 return substr( decoct(@fileperms( 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim($file, '/') )),3);233 return substr( decoct( @fileperms( 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim( $file, '/' ) ) ), -3 ); 234 234 } 235 235
Note: See TracChangeset
for help on using the changeset viewer.