summaryrefslogtreecommitdiffstats
path: root/divs/sidebar.php
diff options
context:
space:
mode:
authorNaglfar <naglfar@tilde.institute>2021-01-11 20:52:06 +0100
committerNaglfar <naglfar@tilde.institute>2021-01-11 20:52:06 +0100
commit412d6cd0427f54846fe4a809fe1bc20deb7fab98 (patch)
tree602802b4d742407b218ab01ac5277d952b11ccf8 /divs/sidebar.php
parentbf0d6e35c962691a13c1d6f6e40cf24cf1b31f51 (diff)
downloadMightyWVMS-412d6cd0427f54846fe4a809fe1bc20deb7fab98.tar.gz
Add canonical url
Diffstat (limited to 'divs/sidebar.php')
-rw-r--r--divs/sidebar.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/divs/sidebar.php b/divs/sidebar.php
index 38fa099..fda8422 100644
--- a/divs/sidebar.php
+++ b/divs/sidebar.php
@@ -1,9 +1,9 @@
<div id="sidebar-related">Related videos</div>
<?php
foreach($vindex as $i => $value)
- if($value != $vid && $i < $wsdata[2])
+ if($value != $vid && $i < $wsdata[3])
{
- $rdata = file($dpath.$wsdata[3].'/toc/'.$value, FILE_IGNORE_NEW_LINES);
+ $rdata = file($dpath.$wsdata[4].'/toc/'.$value, FILE_IGNORE_NEW_LINES);
printf("<div class='sidebar-thumb'><img alt='' src='thumbnails/%s.png'/></div>\n", $value);
printf("<div class='sidebar-data'>\n");