Fix file types
git-svn-id: http://svn.automattic.com/wordpress/trunk@7128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8dcb1bc61c
commit
97cd4acf01
|
@ -306,7 +306,7 @@ class WP_Filesystem_Direct{
|
||||||
$struc['lastmodunix']= $this->mtime($path.'/'.$entry);
|
$struc['lastmodunix']= $this->mtime($path.'/'.$entry);
|
||||||
$struc['lastmod'] = date('M j',$struc['lastmodunix']);
|
$struc['lastmod'] = date('M j',$struc['lastmodunix']);
|
||||||
$struc['time'] = date('h:i:s',$struc['lastmodunix']);
|
$struc['time'] = date('h:i:s',$struc['lastmodunix']);
|
||||||
$struc['type'] = $this->is_dir($path.'/'.$entry) ? 'folder' : 'file';
|
$struc['type'] = $this->is_dir($path.'/'.$entry) ? 'd' : 'f';
|
||||||
if('folder' == $struc['type'] ){
|
if('folder' == $struc['type'] ){
|
||||||
$struc['files'] = array();
|
$struc['files'] = array();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue