diff options
author | Philipp Hagemeister <[email protected]> | 2014-06-01 10:27:01 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-06-01 10:27:01 +0200 |
commit | 52f8db8b79125d9a937034cde287f7e677dbfa98 (patch) | |
tree | 47c730cd6b7e233b5bcc97e333dffc5753c1a574 | |
parent | 644f92f6a5ad4590d9c0b108393362d91cb86747 (diff) | |
download | youtube-dl-52f8db8b79125d9a937034cde287f7e677dbfa98.tar.gz youtube-dl-52f8db8b79125d9a937034cde287f7e677dbfa98.zip |
Filter string latest in list of latest versions
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ <?php $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); $latest = end($versions); |