diff options
author | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-03-14 20:14:52 +0000 |
---|---|---|
committer | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-03-14 20:14:52 +0000 |
commit | 1cb0983ed04c65e06d502ae2ac9ed6d5e31d70dc (patch) | |
tree | 54655ff3e692a71a17f1d37cd97374b263557ca1 /templates/show_recently_played.inc.php | |
parent | ef48bf3fbdca2a4d25f5d025f4c6ad23905e5369 (diff) | |
download | ampache-1cb0983ed04c65e06d502ae2ac9ed6d5e31d70dc.tar.gz ampache-1cb0983ed04c65e06d502ae2ac9ed6d5e31d70dc.tar.bz2 ampache-1cb0983ed04c65e06d502ae2ac9ed6d5e31d70dc.zip |
Cosmetics: remove trailing whitespace
Diffstat (limited to 'templates/show_recently_played.inc.php')
-rw-r--r-- | templates/show_recently_played.inc.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/show_recently_played.inc.php b/templates/show_recently_played.inc.php index d1d59d68..d29d9fc0 100644 --- a/templates/show_recently_played.inc.php +++ b/templates/show_recently_played.inc.php @@ -21,7 +21,7 @@ */ /* Define the time places starting at 0 */ -$time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago')); +$time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago')); $link = Config::get('use_rss') ? ' ' . AmpacheRSS::get_display('recently_played') : ''; show_box_top(_('Recently Played') . $link); ?> @@ -42,15 +42,15 @@ show_box_top(_('Recently Played') . $link); <th class="cel_username"><?php echo _('Username'); ?></th> <th class="cel_lastplayed"><?php echo _('Last Played'); ?></th> </tr> -<?php foreach ($data as $row) { +<?php foreach ($data as $row) { $row_user = new User($row['user']); - $song = new Song($row['object_id']); - $amount = intval(time() - $row['date']+2); + $song = new Song($row['object_id']); + $amount = intval(time() - $row['date']+2); $time_place = '0'; - while ($amount >= 1) { - $final = $amount; - $time_place++; + while ($amount >= 1) { + $final = $amount; + $time_place++; if ($time_place <= 2) { $amount = floor($amount/60); } @@ -66,15 +66,15 @@ show_box_top(_('Recently Played') . $link); if ($time_place == '6') { $amount = floor ($amount/12); } - if ($time_place > '6') { - $final = $amount . '+'; - break; - } + if ($time_place > '6') { + $final = $amount . '+'; + break; + } } $time_string = $final . ' ' . $time_unit[$time_place]; - $song->format(); + $song->format(); ?> <tr class="<?php echo flip_class(); ?>"> <td class="cel_add"> |