diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:00:32 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:38:46 -0500 |
commit | ef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch) | |
tree | e4377fb129a899e65aaaf421f8c97098aecaedd5 /templates/show_object_rating.inc.php | |
parent | 8a750c3e875d590d351c3042570a134fcdf03e5d (diff) | |
download | ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.gz ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.bz2 ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.zip |
Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference
for spaces, and I feel inclined to impose my will on the tree.
Diffstat (limited to 'templates/show_object_rating.inc.php')
-rw-r--r-- | templates/show_object_rating.inc.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/show_object_rating.inc.php b/templates/show_object_rating.inc.php index 14b5c578..97eb2b98 100644 --- a/templates/show_object_rating.inc.php +++ b/templates/show_object_rating.inc.php @@ -1,5 +1,5 @@ <?php -/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */ +/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) @@ -26,8 +26,8 @@ $base_url = '?action=set_rating&rating_type=' . $rating->type . '&object_id=' . $othering = false; $rate = $rating->get_user_rating(); if (!$rate) { - $rate = $rating->get_average_rating(); - $othering = true; + $rate = $rating->get_average_rating(); + $othering = true; } ?> @@ -42,7 +42,7 @@ if (!$rate) { echo '<li class="current-rating" style="width:' . $width . '%" >'; echo T_('Current rating: '); if ($rate <= 0) { - echo T_('not rated yet') . "</li>\n"; + echo T_('not rated yet') . "</li>\n"; } else printf(T_('%s of 5'), $rate); echo "</li>\n"; @@ -50,11 +50,11 @@ if (!$rate) { { ?> <li> - <?php echo Ajax::text($base_url . '&rating=' . $i, '', 'rating' . $i . '_' . $rating->id, '', 'star' . $i); ?> + <?php echo Ajax::text($base_url . '&rating=' . $i, '', 'rating' . $i . '_' . $rating->id, '', 'star' . $i); ?> </li> <?php } ?> </ul> - <?php echo Ajax::text($base_url . '&rating=-1', '', 'rating0_' . $rating->id, '', 'star0'); ?> + <?php echo Ajax::text($base_url . '&rating=-1', '', 'rating0_' . $rating->id, '', 'star0'); ?> </div> |