Ticket #26598: getchmod.diff
| File getchmod.diff, 1.1 KB (added by , 13 years ago) |
|---|
-
trunk/wp-admin/includes/class-wp-filesystem-direct.php
197 197 * @return string Mode of the file (last 4 digits). 198 198 */ 199 199 function getchmod($file) { 200 return substr( decoct(@fileperms($file)),3);200 return substr(sprintf("%06d", decoct(@fileperms($file))),3); 201 201 } 202 202 203 203 function group($file) { -
trunk/wp-admin/includes/class-wp-filesystem-ssh2.php
230 230 } 231 231 232 232 function getchmod($file) { 233 return substr( decoct(@fileperms( 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim($file, '/'))),3);233 return substr(sprintf("%06d", decoct(@fileperms( 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim($file, '/') ))),3); 234 234 } 235 235 236 236 function group($file) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)