web/wp-admin/includes/class-wp-filesystem-ftpext.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
   328 				$b['time'] = strtotime( sprintf('%d %s %d %02d:%02d', $b['day'], $b['month'], $b['year'], $b['hour'], $b['minute']) );
   328 				$b['time'] = strtotime( sprintf('%d %s %d %02d:%02d', $b['day'], $b['month'], $b['year'], $b['hour'], $b['minute']) );
   329 				$b['name'] = $lucifer[8];
   329 				$b['name'] = $lucifer[8];
   330 			}
   330 			}
   331 		}
   331 		}
   332 
   332 
       
   333 		// Replace symlinks formatted as "source -> target" with just the source name
       
   334 		if ( $b['islink'] )
       
   335 			$b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] );
       
   336 
   333 		return $b;
   337 		return $b;
   334 	}
   338 	}
   335 
   339 
   336 	function dirlist($path = '.', $include_hidden = true, $recursive = false) {
   340 	function dirlist($path = '.', $include_hidden = true, $recursive = false) {
   337 		if ( $this->is_file($path) ) {
   341 		if ( $this->is_file($path) ) {