summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-06-01 10:27:01 +0200
committerPhilipp Hagemeister <[email protected]>2014-06-01 10:27:01 +0200
commit52f8db8b79125d9a937034cde287f7e677dbfa98 (patch)
tree47c730cd6b7e233b5bcc97e333dffc5753c1a574
parent644f92f6a5ad4590d9c0b108393362d91cb86747 (diff)
downloadyoutube-dl-52f8db8b79125d9a937034cde287f7e677dbfa98.tar.gz
youtube-dl-52f8db8b79125d9a937034cde287f7e677dbfa98.zip
Filter string latest in list of latest versions
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index f6ae0db23..949a768f4 100644
--- a/index.php
+++ b/index.php
@@ -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);