summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/inc_audio.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/inc_audio.php b/includes/inc_audio.php
index 04d3a12..de7b616 100755
--- a/includes/inc_audio.php
+++ b/includes/inc_audio.php
@@ -71,12 +71,12 @@ if ($medianame_array[0])
for ($cnt2=$cnt; $cnt2<$count; $cnt2++)
{
- $track[$cnt2] = $httppath."playlist/".$medianame2;
+ $track[$cnt2-$cnt] = $httppath."playlist/".$medianame2;
}
$jsarray = php2js($track);
- print " <a class=\"noeffect\" href=\"javascript:var myarray = new Array({$jsarray});addplayer(myarray);document.player.Play();\">\r\n";
+ print " <a class=\"noeffect\" href=\"javascript:var myarray = new Array({$jsarray});addplayer('{$mediapath}{$subdir}','{$medianame2}',myarray);document.player.Play();\">\r\n";
print " <span class=\"number\">$idx</span><span class=\"stop\"></span><span class=\"name\">{$medianame_array[$cnt]}</span>\r\n";
print " </a>\r\n";