Filter string latest in list of latest versions
This commit is contained in:
		
							parent
							
								
									644f92f6a5
								
							
						
					
					
						commit
						52f8db8b79
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -12,7 +12,7 @@
 | 
				
			||||||
<?php
 | 
					<?php
 | 
				
			||||||
$DOWNLOAD_DIR = 'downloads';
 | 
					$DOWNLOAD_DIR = 'downloads';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$versions = array_filter(scandir($DOWNLOAD_DIR), function($v) {return $v{0} != '.';});
 | 
					$versions = array_filter(scandir($DOWNLOAD_DIR), function($v) {return (($v{0} != '.') && ($v != 'latest'));});
 | 
				
			||||||
sort($versions);
 | 
					sort($versions);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$latest = end($versions);
 | 
					$latest = end($versions);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue