summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-02 08:14:21 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-02 08:14:21 +0000
commit05e6d947be96664074d95f9d6f4635415186ecac (patch)
tree6df88ea49db571474efa88af09fe21e088b59f5a /templates
parent864a32a3287df06f4b1e4fb5a422b699562ab4e9 (diff)
downloadampache-05e6d947be96664074d95f9d6f4635415186ecac.tar.gz
ampache-05e6d947be96664074d95f9d6f4635415186ecac.tar.bz2
ampache-05e6d947be96664074d95f9d6f4635415186ecac.zip
fixed a problem I introduced by unfudging the song.php file
Diffstat (limited to 'templates')
-rw-r--r--templates/list_duplicates.inc2
-rw-r--r--templates/show_artist.inc2
-rw-r--r--templates/show_now_playing.inc2
-rw-r--r--templates/show_songs.inc28
4 files changed, 17 insertions, 17 deletions
diff --git a/templates/list_duplicates.inc b/templates/list_duplicates.inc
index c96058c4..f694c332 100644
--- a/templates/list_duplicates.inc
+++ b/templates/list_duplicates.inc
@@ -50,7 +50,7 @@ if ($flags) { ?>
foreach ($dinfolist as $dinfo) {
echo "<tr class=\"".flip_class()."\">".
"<td><input type=\"checkbox\" name=\"song_ids[]\" value=\"" . $dinfo['songid'] . "\" /></td>".
- "<td><a href=\"".$web_path."/song.php?action=m3u&amp;song=$song->id\">".scrub_out($formated_title)."</a> </td>".
+ "<td><a href=\"".$web_path."/song.php?action=single_song&amp;song_id=$song->id\">".scrub_out($formated_title)."</a> </td>".
"<td><a href=\"".$web_path."/artists.php?action=show&amp;artist=".$dinfo['artistid']."\" title=\"".scrub_out($dinfo['artist'])."\">".scrub_out($dinfo['artist'])."</a> </td>".
"<td><a href=\"".$web_path."/albums.php?action=show&amp;album=".$dinfo['albumid']."\" title=\"".scrub_out($dinfo['album'])."\">".scrub_out($dinfo['album'])."</a> </td>".
"<td>".floor($dinfo['time']/60).":".sprintf("%02d", ($dinfo['time']%60) )."</td>".
diff --git a/templates/show_artist.inc b/templates/show_artist.inc
index bd8a6e31..7c7420da 100644
--- a/templates/show_artist.inc
+++ b/templates/show_artist.inc
@@ -62,7 +62,7 @@ foreach ($albums as $album) {
<td><?php echo $album->year; ?></td>
<td><?php echo $count; ?></td>
<td>
- <a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;album=<?php echo $id; ?>"><?php echo _("Play"); ?></a>
+ <a href="<?php echo $web_path; ?>/song.php?action=album&amp;album_id=<?php echo $id; ?>"><?php echo _('Play'); ?></a>
<?php if (batch_ok()) { ?>
| <a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ?>"><?php echo _("Download"); ?></a>
<?php } ?>
diff --git a/templates/show_now_playing.inc b/templates/show_now_playing.inc
index a970dd9b..9aff071c 100644
--- a/templates/show_now_playing.inc
+++ b/templates/show_now_playing.inc
@@ -57,7 +57,7 @@ foreach ($results as $item) {
</td>
<td width="30%">
<div id="np_song_<?php echo $c; ?>">
- <a title="<?php echo scrub_out($song->f_title); ?>" href="<?php echo $web_path; ?>/song.php?action=m3u&amp;song=<?php echo $song->id; ?>">
+ <a title="<?php echo scrub_out($song->f_title); ?>" href="<?php echo $web_path; ?>/song.php?action=single_song&amp;song_id=<?php echo $song->id; ?>">
<?php echo $song->f_title; ?>
</a>
</div>
diff --git a/templates/show_songs.inc b/templates/show_songs.inc
index be31f8da..e01b8a20 100644
--- a/templates/show_songs.inc
+++ b/templates/show_songs.inc
@@ -33,19 +33,19 @@ if (is_object($playlist) && ($GLOBALS['user']->username == $playlist->user || $G
<tr class="table-header">
<th>&nbsp;&nbsp;<a href="#" onclick="check_songs(); return false;">Select</a></th>
<?php if ($playlist_owner) { ?>
- <th><?php echo _("Track"); ?></th>
+ <th><?php echo _('Track'); ?></th>
<?php } ?>
- <th><?php echo _("Song title"); ?></th>
- <th><?php echo _("Artist"); ?></th>
- <th><?php echo _("Album"); ?></th>
- <th><?php echo _("Track"); ?></th>
- <th><?php echo _("Time"); ?></th>
- <th><?php echo _("Size"); ?></th>
- <th><?php echo _("Bitrate"); ?></th>
- <th><?php echo _("Genre"); ?></th>
- <th><?php echo _("Action"); ?></th>
+ <th><?php echo _('Song title'); ?></th>
+ <th><?php echo _('Artist'); ?></th>
+ <th><?php echo _('Album'); ?></th>
+ <th><?php echo _('Track'); ?></th>
+ <th><?php echo _('Time'); ?></th>
+ <th><?php echo _('Size'); ?></th>
+ <th><?php echo _('Bitrate'); ?></th>
+ <th><?php echo _('Genre'); ?></th>
+ <th><?php echo _('Action'); ?></th>
<?php if (conf('ratings') || conf('ratings')=="false") { ?>
- <th width="90"><?php echo _("Rating"); ?></th>
+ <th width="90"><?php echo _('Rating'); ?></th>
<?php } ?>
</tr>
<?php
@@ -94,13 +94,13 @@ foreach ($song_ids as $song_id) {
} ?>
<td>
<?php if ($song->has_flag()) { echo "<strong>**</strong>"; } ?>
- <a href="<?php echo $web_path; ?>/song.php?action=m3u&amp;song=<?php echo $song->id; ?>" title="<?php echo scrub_out($song->title); ?>" <?php echo $text_class; ?>><?php echo scrub_out($song->f_title); ?></a>
+ <a href="<?php echo $web_path; ?>/song.php?action=single_song&amp;song_id=<?php echo $song->id; ?>" title="<?php echo scrub_out($song->title); ?>" <?php echo $text_class; ?>><?php echo scrub_out($song->f_title); ?></a>
</td>
<td>
- <a href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo htmlspecialchars($song->artist); ?>" title="<?php echo htmlspecialchars($song->f_artist_full); ?>" <?php echo $text_class; ?>><?php echo htmlspecialchars($song->f_artist); ?></a>
+ <a href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo scrub_out($song->artist); ?>" title="<?php echo scrub_out($song->f_artist_full); ?>" <?php echo $text_class; ?>><?php echo scrub_out($song->f_artist); ?></a>
</td>
<td>
- <a href="<?php echo $web_path; ?>/albums.php?album=<?php echo htmlspecialchars($song->album); ?>" title="<?php echo htmlspecialchars($song->f_album_full); ?>" <?php echo $text_class; ?>><?php echo htmlspecialchars($song->f_album); ?></a>
+ <a href="<?php echo $web_path; ?>/albums.php?album=<?php echo scrub_out($song->album); ?>" title="<?php echo scrub_out($song->f_album_full); ?>" <?php echo $text_class; ?>><?php echo scrub_out($song->f_album); ?></a>
</td>
<td align="right">
<?php echo $song->track; ?>