summaryrefslogtreecommitdiffstats
path: root/templates/show_songs.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-19 19:18:48 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-19 19:18:48 +0000
commit6a8795b049a7566350efb369f4990f4f8189c9f1 (patch)
tree255b12a6d5f2acb61c6c1189702079fd88b6ef53 /templates/show_songs.inc
parentac62e1a07458facafd255a5e24344e9f60ef38f3 (diff)
downloadampache-6a8795b049a7566350efb369f4990f4f8189c9f1.tar.gz
ampache-6a8795b049a7566350efb369f4990f4f8189c9f1.tar.bz2
ampache-6a8795b049a7566350efb369f4990f4f8189c9f1.zip
no longer passes the sid with the urls if require_session is turned off
Diffstat (limited to 'templates/show_songs.inc')
-rw-r--r--templates/show_songs.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/show_songs.inc b/templates/show_songs.inc
index e01b8a20..4ab38820 100644
--- a/templates/show_songs.inc
+++ b/templates/show_songs.inc
@@ -131,7 +131,7 @@ foreach ($song_ids as $song_id) {
| <a href="<?php echo $web_path; ?>/download/index.php?action=download&amp;song_id=<?php echo $song->id; ?>&amp;sid=<?php echo scrub_out(session_id()); ?>&amp;fn=<?php echo rawurlencode($song->f_artist_full . " - " . $song->title . "." . $song->type); ?>"><?php echo _('Download'); ?></a>
<?php } ?>
<?php if ($GLOBALS['user']->prefs['direct_link']) { ?>
- | <a href="<?php echo $web_path; ?>/play/index.php?song=<?php echo $song->id; ?>&amp;uid=<?php echo $GLOBALS['user']->username . "&amp;sid=" . scrub_out(session_id()); ?>&amp;fn=<?php echo rawurlencode($song->f_artist_full . " - " . $song->title . "." . $song->type); ?>"><?php echo _('Direct Link'); ?></a>
+ | <a href="<?php echo $song->get_url(); ?>"><?php echo _('Direct Link'); ?></a>
<?php } ?>
</td>
<?php if(conf('ratings')) { ?>