summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2012-12-12 20:32:00 +0100
committerPhilipp Hagemeister <[email protected]>2012-12-12 20:32:00 +0100
commit1f69efb978f9bebe9f595092a2b5ce1fc453a5af (patch)
tree42e7c978f5c41069f17f26aeaa99561be30a9fb1
parent3bcc0a565c0b03cf0c71fcec5787baa616863c86 (diff)
downloadyoutube-dl-1f69efb978f9bebe9f595092a2b5ce1fc453a5af.tar.gz
youtube-dl-1f69efb978f9bebe9f595092a2b5ce1fc453a5af.zip
Correct download links
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 0136af5b7..5b862ad40 100644
--- a/index.php
+++ b/index.php
@@ -12,16 +12,16 @@
<?php
$DOWNLOAD_DIR = 'downloads';
-$versions = array_filter(function($v) {return $v{0} != '.'}, scandir($DOWNLOAD_DIR));
+$versions = array_filter(function($v) {return $v{0} != '.';}, scandir($DOWNLOAD_DIR));
sort($versions);
$latest = end($versions);
echo '<div class="latest">';
echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>';
-echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
-echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
-echo '<a href="' . 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">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 '</div>';
echo '<ul>';