summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFilippo Valsorda <[email protected]>2012-12-31 16:54:34 +0100
committerFilippo Valsorda <[email protected]>2012-12-31 17:04:16 +0100
commit71c8858fcd1212b5cf7bb85b69f1bf63d5634992 (patch)
treee1578f6c5026994ea567e59350b0c4667c4f8f0d
parent83f5182bcffe44e794365c5b0a9a764b0d2cd412 (diff)
downloadyoutube-dl-71c8858fcd1212b5cf7bb85b69f1bf63d5634992.tar.gz
youtube-dl-71c8858fcd1212b5cf7bb85b69f1bf63d5634992.zip
fixes
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 5b862ad40..eaed174f9 100644
--- a/index.php
+++ b/index.php
@@ -12,7 +12,7 @@
<?php
$DOWNLOAD_DIR = 'downloads';
-$versions = array_filter(function($v) {return $v{0} != '.';}, scandir($DOWNLOAD_DIR));
+$versions = array_filter(scandir($DOWNLOAD_DIR), function($v) {return $v{0} != '.';});
sort($versions);
$latest = end($versions);
@@ -21,12 +21,12 @@ echo '<div class="latest">';
echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>';
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
-echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz</a>';
+echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-' . htmlspecialchars($latest) . '.tar.gz</a>';
echo '</div>';
echo '<ul>';
-foreach ($versions as $v) {
- echo '<li><a href="' . htmlspecialchars($version) . '">' . htmlspecialchars($version) . '</a></li>';
+foreach ($versions as $version) {
+ echo '<li><a href="downloads/' . htmlspecialchars($version) . '">' . htmlspecialchars($version) . '</a></li>';
}
echo '</ul>';