summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-12 07:43:31 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-12 07:43:31 +0000
commite67cf68ba9ab9a959f389dc3424cf26713678a3c (patch)
tree06f302da2796ea8124c8489bb5f07477a814f9e7
parentb1db92ee8c07a1aa7aef7bdb38b4e401aa608a96 (diff)
downloadampache-e67cf68ba9ab9a959f389dc3424cf26713678a3c.tar.gz
ampache-e67cf68ba9ab9a959f389dc3424cf26713678a3c.tar.bz2
ampache-e67cf68ba9ab9a959f389dc3424cf26713678a3c.zip
fixed a few typos causing ratings to not work at all :(
-rw-r--r--lib/rating.lib.php14
-rw-r--r--templates/show_object_rating.inc.php2
-rw-r--r--templates/show_songs.inc2
3 files changed, 3 insertions, 15 deletions
diff --git a/lib/rating.lib.php b/lib/rating.lib.php
index 4f854c93..676a37eb 100644
--- a/lib/rating.lib.php
+++ b/lib/rating.lib.php
@@ -28,19 +28,7 @@ function show_rating($object_id,$type) {
$rating = new Rating($object_id,$type);
- switch (conf('ratings')) {
- case 'normal':
- include(conf('prefix') . '/templates/show_object_rating.inc.php');
- break;
- case 'flash':
- include(conf('prefix') . '/templates/show_object_rating_flash.inc.php');
- break;
- default:
- return false;
- break;
- } // end flash switch
-
- return true;
+ include(conf('prefix') . '/templates/show_object_rating.inc.php');
} // show_rating
diff --git a/templates/show_object_rating.inc.php b/templates/show_object_rating.inc.php
index afd6d056..05bd3633 100644
--- a/templates/show_object_rating.inc.php
+++ b/templates/show_object_rating.inc.php
@@ -32,7 +32,7 @@ if ($rating->rating == '-1') {
echo "<li class=\"zero-stars\"><span onclick=\"ajaxPut('" . $base_url . "&rating=-1',r_" . $rating->id . "_" . $rating->type . ");return true;\" title=\"don't play\" class=\"zero-stars\"></span></li>\n";
}
else {
- echo "<li class=\"zero-stars\"><span onclick=\"ajaxPut('" . $base_url . "&rating=-1',r_" . $rating->id . "_" . $rating->type . ");return true;\" title=\"remove rating\" class=\"zero-stars\"></span></li>\n";
+ echo "<li class=\"zero-stars\"><span onclick=\"ajaxPut('" . $base_url . "&rating=-1',r_" . $rating->id . "_" . $rating->type . ");return true;\" title=\"remove rating\" class=\"zero-stars\"></span></li>\n";
}
// decide width of rating. image is 16 px wide
$width = $rating->rating*16;
diff --git a/templates/show_songs.inc b/templates/show_songs.inc
index be8f179c..bd633811 100644
--- a/templates/show_songs.inc
+++ b/templates/show_songs.inc
@@ -54,7 +54,7 @@ if (is_object($playlist) && ($GLOBALS['user']->username == $playlist->user || $G
<th><?php echo _('Bitrate'); ?></th>
<th><?php echo _('Genre'); ?></th>
<th><?php echo _('Action'); ?></th>
- <?php if (conf('ratings') || conf('ratings')=="false") { ?>
+ <?php if (conf('ratings')) { ?>
<th width="95px"><?php echo _('Rating'); ?></th>
<?php } ?>
</tr>